Projet

Général

Profil

Révision 9bc39fb2

ID9bc39fb2cf9e989cc62abd642462c3fcbf3c06f5
Parent 8fe960de
Enfant 2aa34846

Ajouté par Thor77 il y a presque 11 ans

fix issue on logrotate

Voir les différences:

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