From 3326202466424f4c8ea9a19d94144ebb11d72b10 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 20 May 2020 15:43:12 +0200 Subject: [PATCH] fix per_minute --- centreon/plugins/values.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon/plugins/values.pm b/centreon/plugins/values.pm index f6645795d..741774561 100644 --- a/centreon/plugins/values.pm +++ b/centreon/plugins/values.pm @@ -241,7 +241,8 @@ sub execute { } if ((defined($value->{diff}) && $value->{diff} == 1) || - (defined($value->{per_second}) && $value->{per_second} == 1)) { + (defined($value->{per_minute}) && $value->{per_minute} == 1) || + (defined($value->{per_second}) && $value->{per_second} == 1)) { $options{new_datas}->{$self->{instance} . '_' . $value->{name}} = $options{values}->{$value->{name}}; $old_datas->{$self->{instance} . '_' . $value->{name}} = $self->{statefile}->get(name => $self->{instance} . '_' . $value->{name}); if (!defined($old_datas->{$self->{instance} . '_' . $value->{name}})) {