From 44f174e0b0f2bec61e5c63ed2e7d54b140348ac2 Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Wed, 31 Mar 2004 01:08:30 +0000 Subject: [PATCH] bandwidth summation fix git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1533 860744bd-22fc-0310-8c96-e9fe5004b5ca --- lib/rrd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rrd.php b/lib/rrd.php index bf158fbd22..c281532e83 100644 --- a/lib/rrd.php +++ b/lib/rrd.php @@ -571,7 +571,7 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array) { /* bandwidth summation */ if (preg_match_all("/\|sum:(\d|auto):(current|total):(\d):(\d+|auto)\|/", $graph_variables[$field_name][$graph_item_id], $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { - $graph_variables[$field_name][$graph_item_id] = str_replace($matches[0], variable_bandwidth_summation($match, $graph_item, $graph_items, $graph_start, $seconds_between_graph_updates, $rra["steps"], $ds_step), $graph_variables[$field_name][$graph_item_id]); + $graph_variables[$field_name][$graph_item_id] = str_replace($match[0], variable_bandwidth_summation($match, $graph_item, $graph_items, $graph_start, $seconds_between_graph_updates, $rra["steps"], $ds_step), $graph_variables[$field_name][$graph_item_id]); } } }