mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
FIX 95th percent lines in negative range
This commit is contained in:
committed by
Richard Kojedzinszky
parent
8196b19096
commit
ca595e1e9d
@@ -66,7 +66,7 @@ if ($i) {
|
||||
$rrd_options .= ' CDEF:doutbits=doutoctets,8,*';
|
||||
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:d95thout=doutbits,5,PERCENT';
|
||||
$rrd_options .= ' CDEF:d95thoutn=doutbits,-1,* VDEF:d95thoutn95=d95thoutn,95,PERCENT CDEF:d95thoutn95n=doutbits,doutbits,-,d95thoutn95,-1,*,+ VDEF:d95thout=d95thoutn95n,FIRST';
|
||||
|
||||
if ($_GET['previous'] == 'yes') {
|
||||
$rrd_options .= ' CDEF:'.$in.'octetsX='.$in_thingX.$pluses;
|
||||
@@ -77,7 +77,7 @@ if ($i) {
|
||||
$rrd_options .= ' CDEF:doutbitsX=doutoctetsX,8,*';
|
||||
$rrd_options .= ' VDEF:95thinX=inbitsX,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thoutX=outbitsX,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:d95thoutX=doutbitsX,5,PERCENT';
|
||||
$rrd_options .= ' CDEF:d95thoutXn=doutbitsX,-1,* VDEF:d95thoutXn95=d95thoutXn,95,PERCENT CDEF:d95thoutXn95n=doutbitsX,doutbitsX,-,d95thoutXn95,-1,*,+ VDEF:d95thoutX=d95thoutXn95n,FIRST';
|
||||
}
|
||||
|
||||
if ($legend == 'no' || $legend == '1') {
|
||||
|
Reference in New Issue
Block a user