diff options
author | Niko Tyni <ntyni@iki.fi> | 2005-12-02 22:45:05 +0100 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2005-12-02 22:45:05 +0100 |
commit | c804efc1111ab2fc29f90d8ba0dcbfcd25f5b43d (patch) | |
tree | 1caa834d2441d36fdb4f7b14c9c88a507629f33d /lib/Smokeping.pm | |
parent | f628316ec477ef0173567ef0810f37817df117a2 (diff) | |
download | smokeping-c804efc1111ab2fc29f90d8ba0dcbfcd25f5b43d.tar.gz smokeping-c804efc1111ab2fc29f90d8ba0dcbfcd25f5b43d.tar.xz |
* brought trunk/ up to date
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r-- | lib/Smokeping.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index f295a42..a483f60 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -740,7 +740,7 @@ sub get_detail ($$$$){ my $imghref; my $max; my @tasks; - my %lasthight; + my %lastheight; if ($mode eq 's'){ # in nave mode there is only one graph, so the height calculation @@ -748,16 +748,16 @@ sub get_detail ($$$$){ $imgbase = $cfg->{General}{imgcache}."/".(join "/", @dirs)."/${file}"; $imghref = $cfg->{General}{imgurl}."/".(join "/", @dirs)."/${file}"; @tasks = @{$cfg->{Presentation}{detail}{_table}}; - if (open (HG,"<${imgbase}.maxhight")){ + if (open (HG,"<${imgbase}.maxheight")){ while (<HG>){ chomp; my @l = split / /; - $lasthight{$l[0]} = $l[1]; + $lastheight{$l[0]} = $l[1]; } close HG; } $max = findmax $cfg, $rrd; - if (open (HG,">${imgbase}.maxhight")){ + if (open (HG,">${imgbase}.maxheight")){ foreach my $s (keys %{$max}){ print HG "$s $max->{$s}\n"; } @@ -906,7 +906,7 @@ sub get_detail ($$$$){ $cfg->{Presentation}{detail}{logarithmic} eq 'yes'; my @lazy =(); - @lazy = ('--lazy') if $mode eq 's' and $lasthight{$start} and $lasthight{$start} == $max->{$start}; + @lazy = ('--lazy') if $mode eq 's' and $lastheight{$start} and $lastheight{$start} == $max->{$start}; $desc = "Navigator Graph" if $mode eq 'n'; my $timer_start = time(); my @task = |