From 84c9b578c775050f81bebfb4b46358b699f6cef5 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Tue, 27 Aug 2024 11:50:07 -0400 Subject: [PATCH] fix rejectPercent --- sarracenia/sr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sarracenia/sr.py b/sarracenia/sr.py index 466a2e744..95fed0d08 100755 --- a/sarracenia/sr.py +++ b/sarracenia/sr.py @@ -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: