From afe24ca480b2950c2a2d8ac515e68be3607b606b Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 14 Sep 2015 12:32:14 +0200 Subject: [PATCH] fixed to show hidden colors of some values in the Icecast graph. #108 --- lib/icecast.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icecast.pm b/lib/icecast.pm index 575d53e..47c2903 100644 --- a/lib/icecast.pm +++ b/lib/icecast.pm @@ -418,10 +418,12 @@ sub icecast_cgi { push(@tmp, "GPRINT:ice" . $e . "_mp$n" . ":MAX: Max\\:%4.0lf\\n"); $n++; } + $n = 0; if(lc($icecast->{graph_mode}) ne "s") { foreach my $i (split(',', $icecast->{desc}->{$url})) { push(@tmp, "LINE2:ice" . $e . "_mp$n" . $LC[$n]); push(@tmpz, "LINE2:ice" . $e . "_mp$n" . $LC[$n]); + $n++; } }