diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-23 23:00:57 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-03-23 23:00:57 +0545 |
commit | 466e8ed7b466d479f19c5b6c16a0dc455d86ddfb (patch) | |
tree | 513c7ac038ea781f16c651c84aa3a56362f6bd81 /usr/local/www/status_rrd_graph.php | |
parent | b276b67958f258232be09dee12096a4b9d608f7d (diff) | |
download | pfsense-466e8ed7b466d479f19c5b6c16a0dc455d86ddfb.zip pfsense-466e8ed7b466d479f19c5b6c16a0dc455d86ddfb.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)); |