diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-23 23:00:57 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-03-26 13:28:08 -0300 |
commit | 8e2a5adf5000103091c1ca26fc92de16b359faf4 (patch) | |
tree | 2dd429beaecc3b34362822a3fd26c938d8918168 /usr/local/www/status_rrd_graph.php | |
parent | 383dd72d61c6e483e38b8e798c0cb1ffc0c3c1e4 (diff) | |
download | pfsense-8e2a5adf5000103091c1ca26fc92de16b359faf4.zip pfsense-8e2a5adf5000103091c1ca26fc92de16b359faf4.tar.gz |
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.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rw-r--r-- | usr/local/www/status_rrd_graph.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index d67ddbe..e64cf72 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 "<option value=\"{$database}\""; $prettyprint = ucwords(str_replace($search, $replace, $database)); |