diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-16 17:12:25 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-16 17:12:25 +0200 |
commit | b5b7c0f2dc7420cb4c322f571ae16743bd621b39 (patch) | |
tree | c4db951c7da3536a95a8bc51581c44e6501aa767 /lib/Smokeping/Graphs.pm | |
parent | 246f2b329811de06711d2c60c1010106034a7eec (diff) | |
download | smokeping-b5b7c0f2dc7420cb4c322f571ae16743bd621b39.tar.gz smokeping-b5b7c0f2dc7420cb4c322f571ae16743bd621b39.tar.xz |
* don't complain when there is no data in a graph yet while calculation stddev -- tobi
* in a multihost graph take the number of pings for each component into consideration -- tobi
Diffstat (limited to 'lib/Smokeping/Graphs.pm')
-rw-r--r-- | lib/Smokeping/Graphs.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping/Graphs.pm b/lib/Smokeping/Graphs.pm index f0d7bf7..895e3cb 100644 --- a/lib/Smokeping/Graphs.pm +++ b/lib/Smokeping/Graphs.pm @@ -208,7 +208,7 @@ sub get_multi_detail ($$$$;$){ $label = sprintf("%-20s",$label); push @colors, $medc; my $sdc = $medc; - my $stddev = Smokeping::RRDhelpers::get_stddev($rrd,'median','AVERAGE',$realstart,$sigtime); + my $stddev = Smokeping::RRDhelpers::get_stddev($rrd,'median','AVERAGE',$realstart,$sigtime) || 0; $sdc =~ s/^(......).*/${1}30/; push @G, "DEF:median$i=${rrd}:median:AVERAGE", |