From 29a1b13e7ac8f20512b7a066c351bad614998f83 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 25 Jan 2022 11:16:41 +0100 Subject: Improved Plotly/Dash example. It is now somehow informative. * TCP timeout after FIN/RST: switched back to the value from a35fc1d5ea8570609cc0c8cf6edadc81f8f5bb76 * py-flow-info: reset 'guessed' flag after detection/detection-update received Signed-off-by: Toni Uhlig --- examples/py-flow-info/flow-info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/py-flow-info/flow-info.py') diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py index 1f25cea55..42f70d813 100755 --- a/examples/py-flow-info/flow-info.py +++ b/examples/py-flow-info/flow-info.py @@ -72,7 +72,11 @@ class Stats: set_attr_from_dict(current_flow, json_dict, 'flow_event_name', '') set_attr_if_not_set(current_flow, 'guessed', False) set_attr_if_not_set(current_flow, 'not_detected', False) - if current_flow.flow_event_name == 'guessed': + + if current_flow.flow_event_name == 'detected' or \ + current_flow.flow_event_name == 'detection-update': + current_flow.guessed = False + elif current_flow.flow_event_name == 'guessed': current_flow.guessed = True elif current_flow.flow_event_name == 'not-detected': current_flow.not_detected = True -- cgit v1.2.3