mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 13:23:12 +03:00
Erreur Internal Server Error à partir de la V4.1.0 et suivante #2943
This commit is contained in:
parent
dc8707ad33
commit
a1c0be479f
@ -1163,7 +1163,7 @@ class GlancesPluginModel:
|
||||
# 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:
|
||||
if field + '_gauge' in stat_previous and stat[field] and stat_previous[field + '_gauge']:
|
||||
# The stat becomes the delta between the current and the previous value
|
||||
stat[field] = stat[field] - stat_previous[field + '_gauge']
|
||||
# Compute the rate
|
||||
|
Loading…
Reference in New Issue
Block a user