From 8e2a5adf5000103091c1ca26fc92de16b359faf4 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 23 Mar 2015 23:00:57 +0545 Subject: [PATCH] RRD Graph Custom Tab display friendly description The other tabs of Status:RRD Graphs put the friendly description of each interface into the drop-down list for selection. This change makes the Custom tab do that also. --- usr/local/www/status_rrd_graph.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index d67ddbebdc..e64cf72505 100644 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -480,7 +480,11 @@ function get_dates($curperiod, $graph) { if($curcat == "custom") { foreach ($custom_databases as $db => $database) { $optionc = explode("-", $database); - $search = array("-", ".rrd", $optionc); + $friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc[0])); + if (empty($friendly)) { + $friendly = $optionc[0]; + } + $search = array("-", ".rrd", $optionc[0]); $replace = array(" :: ", "", $friendly); echo "