mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webgui: Added ability to set warning percentage for CPU, mempools from device edit page (#5895)
This commit is contained in:
committed by
Neil Lathwood
parent
354bd2144d
commit
afb838bc10
@@ -59,7 +59,7 @@ foreach (dbFetchRows($sql, $param) as $drive) {
|
||||
$graph_array_zoom['width'] = '400';
|
||||
$link = 'graphs/id='.$graph_array['id'].'/type='.$graph_array['type'].'/from='.$graph_array['from'].'/to='.$graph_array['to'].'/';
|
||||
$mini_graph = overlib_link($link, generate_lazy_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), null);
|
||||
$background = get_percentage_colours($perc);
|
||||
$background = get_percentage_colours($perc, $drive['storage_perc_warn']);
|
||||
$bar_link = overlib_link($link, print_percentage_bar(400, 20, $perc, "$used / $total", 'ffffff', $background['left'], $free, 'ffffff', $background['right']), generate_graph_tag($graph_array_zoom), null);
|
||||
|
||||
$response[] = array(
|
||||
|
Reference in New Issue
Block a user