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