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