• Bug#250982: Fix

    From Matthieu Lochegnies@1:229/2 to All on Sat Aug 14 14:10:08 2004
    From: [email protected]

    Hi,

    here is a small patch against munin-graph that fixes the bug for me.

    --
    Prof

    --- /usr/share/munin/munin-graph 2004-07-18 13:40:11.000000000 +0200
    +++ munin-graph 2004-08-14 13:51:17.000000000 +0200
    @@ -632,7 +632,7 @@

    push (@rrd_negatives, ($node->{client}->{$service}->{$negfield.".draw"} || "LINE2") .
    ":n" . $cdef . "g$negfield" .
    - (defined $single_value and $single_value ? $single_colour : $COLOUR[$col_count-1%@COLOUR]));
    + ((defined $single_value and $single_value) ? $single_colour : $COLOUR[$col_count-1%@COLOUR]));
    push (@rrd_negatives, "HRULE:".$node->{client}->{$service}->{"$negfield.warn"}.
    (defined $single_value and $single_value ? "#ff0000" : $COLOUR[$col_count-1%@COLOUR]))
    if $node->{client}->{$service}->{"$negfield.warn"};

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)