remove per_hour
This commit is contained in:
parent
d8969c48c8
commit
9c1ea68803
|
@ -93,8 +93,6 @@ sub calc {
|
|||
$self->{result_values}->{$value->{name}} = ($options{new_datas}->{$self->{instance} . '_' . $value->{name}} - $options{old_datas}->{$self->{instance} . '_' . $value->{name}}) / $options{delta_time};
|
||||
} elsif (defined($value->{per_minute}) && $value->{per_minute} == 1) {
|
||||
$self->{result_values}->{$value->{name}} = ($options{new_datas}->{$self->{instance} . '_' . $value->{name}} - $options{old_datas}->{$self->{instance} . '_' . $value->{name}}) / ($options{delta_time} / 60);
|
||||
} elsif (defined($value->{per_hour}) && $value->{per_hour} == 1) {
|
||||
$self->{result_values}->{$value->{name}} = ($options{new_datas}->{$self->{instance} . '_' . $value->{name}} - $options{old_datas}->{$self->{instance} . '_' . $value->{name}}) / ($options{delta_time} / 3600);
|
||||
} else {
|
||||
$self->{result_values}->{$value->{name}} = $options{new_datas}->{$self->{instance} . '_' . $value->{name}};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue