mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Added device_ before the graph name is returned
This commit is contained in:
@@ -441,7 +441,7 @@ function get_graphs() {
|
|||||||
$graphs[] = array('desc' => 'Ping Response', 'name' => 'device_ping_perf');
|
$graphs[] = array('desc' => 'Ping Response', 'name' => 'device_ping_perf');
|
||||||
foreach (dbFetchRows("SELECT * FROM device_graphs WHERE device_id = ? ORDER BY graph", array($device_id)) as $graph) {
|
foreach (dbFetchRows("SELECT * FROM device_graphs WHERE device_id = ? ORDER BY graph", array($device_id)) as $graph) {
|
||||||
$desc = $config['graph_types']['device'][$graph['graph']]['descr'];
|
$desc = $config['graph_types']['device'][$graph['graph']]['descr'];
|
||||||
$graphs[] = array('desc' => $desc, 'name' => $graph['graph']);
|
$graphs[] = array('desc' => $desc, 'name' => 'device_'.$graph['graph']);
|
||||||
}
|
}
|
||||||
$total_graphs = count($graphs);
|
$total_graphs = count($graphs);
|
||||||
$output = array("status" => "$status", "err-msg" => $message, "count" => $total_graphs, "graphs" => $graphs);
|
$output = array("status" => "$status", "err-msg" => $message, "count" => $total_graphs, "graphs" => $graphs);
|
||||||
|
|||||||
Reference in New Issue
Block a user