From 5069f886feecf3571296f58918a842d8da42307f Mon Sep 17 00:00:00 2001 From: Anze Date: Mon, 4 Mar 2024 20:55:14 +0100 Subject: [PATCH] Fix missing cast --- netflowbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netflowbot.py b/netflowbot.py index b302112..7572780 100644 --- a/netflowbot.py +++ b/netflowbot.py @@ -545,7 +545,7 @@ def get_top_N_dstports_for_entity(interval_label, last_used_ts, max_ts, time_bet output_path_entity = NetFlowBot.construct_output_path_prefix(interval_label, direction, entity_id, interface=None) for l4_dst_port, traffic_bytes in c.fetchall(): - output_path = f"{output_path_entity}.topdstports.{path_part_encode(l4_dst_port)}" + output_path = f"{output_path_entity}.topdstports.{path_part_encode(str(l4_dst_port))}" values.append({ 'p': output_path, 'v': traffic_bytes / time_between, # Bps