summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glances/plugins/glances_network.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py
index 62715bd2..ed8e648a 100644
--- a/glances/plugins/glances_network.py
+++ b/glances/plugins/glances_network.py
@@ -268,6 +268,10 @@ class Plugin(GlancesPlugin):
# Add specifics information
# Alert
for i in self.get_raw():
+ if i['time_since_update'] == 0:
+ # Skip alert if no timespan to measure
+ continue
+
if_real_name = i['interface_name'].split(':')[0]
# Convert rate in bps (to be able to compare to interface speed)
bps_rx = int(i['rx'] // i['time_since_update'] * 8)