mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
fix issue on logrotate
This commit is contained in:
parent
8fe960de7b
commit
9bc39fb2cf
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ def data():
|
|||
last_value = last[network_channel]
|
||||
# what munin gets
|
||||
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
|
||||
current[network_channel] = current_value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue