1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

fix issue on logrotate

This commit is contained in:
Thor77 2015-02-02 13:01:57 +01:00
parent 8fe960de7b
commit 9bc39fb2cf

View file

@ -63,7 +63,8 @@ def data():
last_value = last[network_channel] last_value = last[network_channel]
# what munin gets # what munin gets
value = (current_value - last_value) / 5 # subtrate last from current and divide through 5 to get new lines / minute value = (current_value - last_value) / 5 # subtrate last from current and divide through 5 to get new lines / minute
if value < 0:
value = 0
# save it to the states-file # save it to the states-file
current[network_channel] = current_value current[network_channel] = current_value