summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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);