Change rounding for rep-19a to two decimals

This commit is contained in:
Tobias Eidelpes 2021-05-14 20:04:16 +02:00
parent fa789a77a8
commit 7c2a471a64

View File

@ -16,7 +16,7 @@ packets_percentage_proto = ((df_proto['6 · # Packets'].sum() +
# Calculate ratio of packets from all other protocols
packets_percentage_others = 100 - packets_percentage_proto
print('Percentage of "others" from all protocols: ', round(packets_percentage_others, 1))
print('Percentage of "others" from all protocols: ', round(packets_percentage_others, 2))
# Calculate percentage of unique source IPs with 1 (ICMP), 6 (TCP) or 17 (UDP) protocols
uIPs_percentage_proto = ((df_proto['6 · # Unique Source IPs'].sum() +