Skip to content

Commit

Permalink
Fix missing cast
Browse files Browse the repository at this point in the history
  • Loading branch information
grafolean committed Mar 4, 2024
1 parent faa0b3f commit 5069f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netflowbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5069f88

Please sign in to comment.