Révision 9bc39fb2
fix issue on logrotate
| plugins/znc/znc_logs.py | ||
|---|---|---|
| 63 | 63 |
last_value = last[network_channel] |
| 64 | 64 |
# what munin gets |
| 65 | 65 |
value = (current_value - last_value) / 5 # subtrate last from current and divide through 5 to get new lines / minute |
| 66 |
|
|
| 66 |
if value < 0: |
|
| 67 |
value = 0 |
|
| 67 | 68 |
# save it to the states-file |
| 68 | 69 |
current[network_channel] = current_value |
| 69 | 70 |
|
Formats disponibles : Unified diff