mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
Fix counter turns and reboot
This commit is contained in:
parent
12be34113a
commit
98fc54d09f
@ -125,6 +125,10 @@ sub run {
|
||||
$self->{output}->exit();
|
||||
}
|
||||
|
||||
# Reboot or counter goes back
|
||||
if ($old_value > $value) {
|
||||
$old_value = 0;
|
||||
}
|
||||
$value = $value - $old_value;
|
||||
if (defined($self->{option_results}->{counter_per_seconds})) {
|
||||
my $delta_time = $datas->{timestamp} - $old_timestamp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user