Skip to content

Commit

Permalink
Fixed typo in the variable names, as we should compare EPOCHs, not VA…
Browse files Browse the repository at this point in the history
…LUEs. (Closes #1203)
  • Loading branch information
steveschnepp committed May 15, 2012
1 parent 87fcce7 commit c27dd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/lib/Munin/Master/LimitsOld.pm
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ sub process_service {

if (! $field->{type} || $field->{type} eq "GAUGE" || $field->{type} eq "ABSOLUTE") {
$value = $current_updated_value;
} elsif (! defined $current_updated_value || ! defined $previous_updated_value || $current_updated_value eq $previous_updated_value) {
} elsif (! defined $current_updated_value || ! defined $previous_updated_value || $current_updated_timestamp == $previous_updated_timestamp) {
# No derive computing possible. Report unknown.
$value = "U";
} elsif ($field->{type} eq "COUNTER" && $current_updated_value < $previous_updated_value) {
Expand Down

0 comments on commit c27dd54

Please sign in to comment.