summaryrefslogtreecommitdiffstats
path: root/glances/plugins/plugin/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/plugins/plugin/model.py')
-rw-r--r--glances/plugins/plugin/model.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/glances/plugins/plugin/model.py b/glances/plugins/plugin/model.py
index 513e12e3..ba8f2733 100644
--- a/glances/plugins/plugin/model.py
+++ b/glances/plugins/plugin/model.py
@@ -1239,6 +1239,7 @@ class GlancesPluginModel(object):
# For all the field with the rate=True flag
if 'rate' in self.fields_description[field] and self.fields_description[field]['rate'] is True:
# Create a new metadata with the gauge
+ stat['time_since_update'] = self.time_since_last_update
stat[field + '_gauge'] = stat[field]
if field + '_gauge' in stat_previous:
# The stat becomes the delta between the current and the previous value