Skip to content

Commit

Permalink
bugfix for unknown last values
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Jul 11, 2011
1 parent 0870830 commit 071fca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/lib/Munin/Master/LimitsOld.pm
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ sub process_service {
my $value;
{
my $rrd_filename = munin_get_rrd_filename($field);
my ($current_updated_timestamp, $current_updated_value) = @{ $state->{value}{"$rrd_filename:42"}{current} };
my ($previous_updated_timestamp, $previous_updated_value) = @{ $state->{value}{"$rrd_filename:42"}{previous} };
my ($current_updated_timestamp, $current_updated_value) = @{ $state->{value}{"$rrd_filename:42"}{current} || [ ] };
my ($previous_updated_timestamp, $previous_updated_value) = @{ $state->{value}{"$rrd_filename:42"}{previous} || [ ] };

if (! $field->{type} || $field->{type} eq "GAUGE" || $field->{type} eq "ABSOLUTE") {
$value = $current_updated_value;
Expand Down

0 comments on commit 071fca0

Please sign in to comment.