From 8faa33eebaa4ea1b3ab0b4259e995bc0f858604d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 16 Mar 2024 20:00:02 +0100 Subject: [PATCH] Firewall: Diagnostics: Statistics - fix incorrect packet counters, closes https://github.com/opnsense/core/issues/7332 --- src/opnsense/scripts/filter/pfstatistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/filter/pfstatistics.py b/src/opnsense/scripts/filter/pfstatistics.py index 00ea17acf..56a338a79 100755 --- a/src/opnsense/scripts/filter/pfstatistics.py +++ b/src/opnsense/scripts/filter/pfstatistics.py @@ -91,7 +91,7 @@ def pfctl_interfaces(): result[heading_line][topic] = int(line) elif line.find('Packets') > -1 and line.find('Bytes') > -1: parts = line.split() - result[heading_line]["%s_packets" % topic] = int(parts[4]) + result[heading_line]["%s_packets" % topic] = int(parts[2]) result[heading_line]["%s_bytes" % topic] = int(parts[4]) return result