Skip to content

Commit

Permalink
fix rejectPercent
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Aug 27, 2024
1 parent f7563bc commit 84c9b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ def _resolve(self):

self.cumulative_stats['txMessageRate'] += (m["txGoodCount"]+m["txBadCount"])/time_base
if m["rxGoodCount"] > 0:
m['rejectPercent'] = ((m['rejectCount']+m['rxBadCount'])/m['rxGoodCount'])*100
m['rejectPercent'] = ((m['rejectCount']+m['rxBadCount'])/(m['rxGoodCount']+m['rxBadCount']))*100
if m['rejectPercent'] > 100:
m['rejectPercent']=100
else:
Expand Down

0 comments on commit 84c9b57

Please sign in to comment.