Fixed display of 95th % for generic graphs in bytes

This commit is contained in:
=
2016-07-01 15:22:02 +01:00
parent 6956ed7870
commit c6fa5dbe84

View File

@ -85,15 +85,17 @@ $rrd_options .= ' VDEF:totin=inoctets,TOTAL';
$rrd_options .= ' VDEF:totout=outoctets,TOTAL';
$rrd_options .= ' VDEF:tot=octets,TOTAL';
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
$rrd_options .= ' CDEF:d95thoutn=doutbits,-1,* VDEF:d95thoutn95=d95thoutn,95,PERCENT CDEF:d95thoutn95n=doutbits,doutbits,-,d95thoutn95,-1,*,+ VDEF:d95thout=d95thoutn95n,FIRST';
if ($format == 'octets' || $format == 'bytes') {
$rrd_options .= ' VDEF:95thin=inoctets,95,PERCENT';
$rrd_options .= ' VDEF:95thout=outoctets,95,PERCENT';
$units = 'Bps';
$format = 'octets';
}
else {
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
$units = 'bps';
$format = 'bits';
}