Revision 466e8ed7
Added by Phil Davis about 10 years ago
usr/local/www/status_rrd_graph.php | ||
---|---|---|
480 | 480 |
if($curcat == "custom") { |
481 | 481 |
foreach ($custom_databases as $db => $database) { |
482 | 482 |
$optionc = explode("-", $database); |
483 |
$search = array("-", ".rrd", $optionc); |
|
483 |
$friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc[0])); |
|
484 |
if (empty($friendly)) { |
|
485 |
$friendly = $optionc[0]; |
|
486 |
} |
|
487 |
$search = array("-", ".rrd", $optionc[0]); |
|
484 | 488 |
$replace = array(" :: ", "", $friendly); |
485 | 489 |
echo "<option value=\"{$database}\""; |
486 | 490 |
$prettyprint = ucwords(str_replace($search, $replace, $database)); |
Also available in: Unified diff
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.