fix per_minute

This commit is contained in:
garnier-quentin 2020-05-20 15:43:12 +02:00 committed by Lotfi zaouche
parent 756cbe5f96
commit 3326202466
1 changed files with 2 additions and 1 deletions

View File

@ -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}})) {