Skip to content

Commit 5069f88

Browse files
committed
Fix missing cast
1 parent faa0b3f commit 5069f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netflowbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def get_top_N_dstports_for_entity(interval_label, last_used_ts, max_ts, time_bet
545545

546546
output_path_entity = NetFlowBot.construct_output_path_prefix(interval_label, direction, entity_id, interface=None)
547547
for l4_dst_port, traffic_bytes in c.fetchall():
548-
output_path = f"{output_path_entity}.topdstports.{path_part_encode(l4_dst_port)}"
548+
output_path = f"{output_path_entity}.topdstports.{path_part_encode(str(l4_dst_port))}"
549549
values.append({
550550
'p': output_path,
551551
'v': traffic_bytes / time_between, # Bps

0 commit comments

Comments
 (0)