Ticket #443: go.patch

File go.patch, 1.4 KB (added by insom, at 2010-08-03T14:26:15+02:00)

Patch against 1.4.3 to add 95th

  • GraphOld.pm

    old new  
    810810 
    811811            # Only one field. Do min/max range. 
    812812            push(@rrd, "CDEF:min_max_diff=a$rrdname,i$rrdname,-"); 
     813            push(@rrd, "VDEF:v$rrdname=a$rrdname,95,PERCENT"); 
    813814            push(@rrd, "CDEF:re_zero=min_max_diff,min_max_diff,-") 
    814815                if !munin_get($field, "negative"); 
    815816 
     
    817818            push(@rrd, "STACK:min_max_diff$range_colour"); 
    818819            push(@rrd, "LINE2:re_zero#000000") 
    819820                if !munin_get($field, "negative"); 
     821            push(@rrd, "LINE2:v$rrdname#609060"); 
    820822        } 
    821823 
    822824        # Push "global" headers or not 
     
    827829            push(@rrd, "COMMENT:Cur (-/+)"); 
    828830            push(@rrd, "COMMENT:Min (-/+)"); 
    829831            push(@rrd, "COMMENT:Avg (-/+)"); 
     832            push(@rrd, "COMMENT:95th (-/+)"); 
    830833            push(@rrd, "COMMENT:Max (-/+) \\j"); 
    831834            $global_headers = 2;    # Avoid further headers/labels 
    832835        } 
     
    938941                    . $rrdscale 
    939942                    . "/\\g"); 
    940943            push(@rrd, "GPRINT:g$rrdname:AVERAGE:$avgformat" . $rrdscale . ""); 
     944            push(@rrd, "GPRINT:v$rrdname:$avgformat" . $rrdscale . ""); 
    941945            push(@rrd, 
    942946                "GPRINT:a$negfieldname:MAX:$rrdformat" . $rrdscale . "/\\g"); 
    943947            push(@rrd, "GPRINT:a$rrdname:MAX:$rrdformat" . $rrdscale . "\\j");