mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 22:54:19 +09:00
bandwidth summation fix
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1533 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
3693eaaa86
commit
44f174e0b0
1 file changed
+1
-1
+1
-1
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user