From 9cd5e6f516437e9b31e2fc17826d463ca78381bf Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Mon, 23 Aug 2010 21:11:25 -0600 Subject: [PATCH] Allow System: Throughput RRD graph to be displayed. Ticket #715 --- usr/local/www/status_rrd_graph.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index e1ee2b2c9c..dd659c7c8f 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -175,6 +175,9 @@ $dbheader = array("allgraphs-traffic.rrd", "outbound-packets.rrd", "outbound-traffic.rrd"); +/* additional menu choices for the custom tab */ +$dbheader_custom = array("system-throughput.rrd"); + foreach($databases as $database) { if(stristr($database, "-wireless")) { $wireless = true; @@ -191,6 +194,7 @@ foreach($databases as $database) { } /* append the existing array to the header */ $ui_databases = array_merge($dbheader, $databases); +$custom_databases = array_merge($dbheader_custom, $databases); $styles = array('inverse' => gettext('Inverse'), 'absolute' => gettext('Absolute')); @@ -336,7 +340,7 @@ function get_dates($curperiod, $graph) { $database) { + foreach ($custom_databases as $db => $database) { $optionc = split("-", $database); $search = array("-", ".rrd", $optionc); $replace = array(" :: ", "", $friendly); @@ -420,7 +424,7 @@ function get_dates($curperiod, $graph) { \n"; echo "