mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Improving Health limits display (#10007)
This commit is contained in:
committed by
PipoCanaja
parent
fbfed49082
commit
76597ea94a
@ -130,8 +130,10 @@ foreach (dbFetchRows($sql, $param) as $sensor) {
|
||||
'graph' => overlib_link($link_graph, $sensor_minigraph, $overlib_content, null),
|
||||
'alert' => $alert,
|
||||
'sensor_current' => $sensor_current,
|
||||
'sensor_limit_low' => is_null($sensor['sensor_limit_low']) ? '-' : round($sensor['sensor_limit_low'], 2).$unit,
|
||||
'sensor_limit' => is_null($sensor['sensor_limit']) ? '-' : round($sensor['sensor_limit'], 2).$unit,
|
||||
'sensor_limit_low' => is_null($sensor['sensor_limit_low']) ? '-' :
|
||||
'<span class=\'label label-default\'>' . trim(format_si($sensor['sensor_limit_low']) . $unit) . '</span>',
|
||||
'sensor_limit' => is_null($sensor['sensor_limit']) ? '-' :
|
||||
'<span class=\'label label-default\'>' . trim(format_si($sensor['sensor_limit']) . $unit) . '</span>',
|
||||
);
|
||||
|
||||
if ($vars['view'] == 'graphs') {
|
||||
|
Reference in New Issue
Block a user