Fix previous with rrdgraph_real_percentile (#11306)

start and end only work with DEF (and are already devined for inoctetsX and outoctetsX.
This commit is contained in:
Tony Murray
2020-03-19 20:12:29 -05:00
committed by GitHub
parent 333bc95fac
commit 6c4d53d5e5

View File

@@ -101,7 +101,7 @@ if (Config::get('rrdgraph_real_percentile')) {
$rrd_options .= ' CDEF:highbits=inoctets,outoctets,MAX,8,*';
$rrd_options .= ' VDEF:percentilehigh=highbits,' . Config::get('percentile_value') . ',PERCENT';
if ($_GET['previous'] == 'yes') {
$rrd_options .= ' CDEF:highbitsX=inoctetsX,outoctetsX,MAX:start=' . $prev_from . ':end=' . $from . ',8,*';
$rrd_options .= ' CDEF:highbitsX=inoctetsX,outoctetsX,MAX,8,*';
$rrd_options .= ' VDEF:percentilehighX=highbitsX,' . Config::get('percentile_value') . ',PERCENT';
}
}