cleanup graph $vars used (#5994)

* cleanup graph $vars used

* updated riverbed graphs
This commit is contained in:
Neil Lathwood
2017-02-24 15:22:15 +00:00
committed by GitHub
parent dfac70be69
commit fdb0656c17
64 changed files with 205 additions and 205 deletions

View File

@@ -18,10 +18,10 @@ $x = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
$max_colours = count($config['graph_colours'][$colours]);
foreach ($array as $ds => $vars) {
foreach ($array as $ds => $var) {
$x = (($x <= $max_colours) ? $x : 0);
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $vars['descr'];
$rrd_list[$i]['descr'] = $var['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
$i++;