summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2007-07-17 12:44:51 +0200
committerNiko Tyni <ntyni@iki.fi>2007-07-17 12:44:51 +0200
commita0641940e2bc3a1b0490529d37212f98204042b8 (patch)
treefcb396ecd5e0040332a1a64dc65a443074c96f54 /lib/Smokeping.pm
parent4f7bb7081fa7abb24508df16b2f25db369c55df7 (diff)
downloadsmokeping-a0641940e2bc3a1b0490529d37212f98204042b8.tar.gz
smokeping-a0641940e2bc3a1b0490529d37212f98204042b8.tar.xz
fix uses of uninitialized value in the loss_background code
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 3abcc9a..ec90ee4 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -868,7 +868,10 @@ sub get_detail ($$$$;$){
# determine a more 'pastel' version of the ping colours; this is
# used for the optional loss background colouring
foreach my $key (keys %lc) {
- next if ($key == 0);
+ if ($key == 0) {
+ $lcback{$key} = "";
+ next;
+ }
my $web = $lc{$key}[1];
my @rgb = Smokeping::Colorspace::web_to_rgb($web);
my @hsl = Smokeping::Colorspace::rgb_to_hsl(@rgb);