summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-16 17:12:25 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-16 17:12:25 +0200
commitb5b7c0f2dc7420cb4c322f571ae16743bd621b39 (patch)
treec4db951c7da3536a95a8bc51581c44e6501aa767 /lib/Smokeping
parent246f2b329811de06711d2c60c1010106034a7eec (diff)
downloadsmokeping-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')
-rw-r--r--lib/Smokeping/Graphs.pm2
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",