From 6c4d53d5e54a959761eeb364b984c858de58fb4a Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 19 Mar 2020 20:12:29 -0500 Subject: [PATCH] Fix previous with rrdgraph_real_percentile (#11306) start and end only work with DEF (and are already devined for inoctetsX and outoctetsX. --- includes/html/graphs/generic_data.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/html/graphs/generic_data.inc.php b/includes/html/graphs/generic_data.inc.php index 6ae132f3dc..13a84eb1bd 100644 --- a/includes/html/graphs/generic_data.inc.php +++ b/includes/html/graphs/generic_data.inc.php @@ -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'; } }