summaryrefslogtreecommitdiff
path: root/examples/py-flow-info/flow-info.py
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-03-24 01:04:49 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-03-24 01:04:49 +0100
commit65a9e5a18daf10cc2b8c7266d1ac0a9bcb7f1c4c (patch)
tree5b13befcee7e759c71618dc676884fe0d63a5726 /examples/py-flow-info/flow-info.py
parentc0b7bdacbc15c1cf5eaeb9faefc088aa698e94ba (diff)
Executing ./tests/run_tests.sh w/o zLib should not result in diff's anymore.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-flow-info/flow-info.py')
-rwxr-xr-xexamples/py-flow-info/flow-info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py
index aaf92e4d9..0dbc5e63c 100755
--- a/examples/py-flow-info/flow-info.py
+++ b/examples/py-flow-info/flow-info.py
@@ -262,9 +262,10 @@ def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data):
if 'daemon_event_id' in json_dict:
if json_dict['daemon_event_name'] == 'status':
color = [TermColor.WARNING]
- daemon_msg = '[Processed: {} pkts][Flows][active: {} / {}|skipped: {}|!detected: {}' \
+ daemon_msg = '[Processed: {} pkts][ZLib][compressions: {}|diff: {} / {}][Flows][active: {} / {}|skipped: {}|!detected: {}' \
'|guessed: {}|detection-updates: {}|updates: {}]'.format(
json_dict['packets-processed'],
+ json_dict['total-compressions'], json_dict['current-compression-diff'], json_dict['total-compression-diff'],
json_dict['current-active-flows'], json_dict['total-active-flows'],
json_dict['total-skipped-flows'],
json_dict['total-not-detected-flows'], json_dict['total-guessed-flows'],