mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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.
This commit is contained in:
parent
383dd72d61
commit
8e2a5adf50
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user