mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3009 from Morrvick/patch-1
Ignore devices that do not provide an uptime statistic.
This commit is contained in:
@ -53,7 +53,7 @@ else {
|
|||||||
foreach(dbFetchRows($sql, $param) as $device) {
|
foreach(dbFetchRows($sql, $param) as $device) {
|
||||||
if ($device['status'] == '1') {
|
if ($device['status'] == '1') {
|
||||||
$btn_type = 'btn-success';
|
$btn_type = 'btn-success';
|
||||||
if ($device['uptime'] < $config['uptime_warning']) {
|
if (($device['uptime'] < $config['uptime_warning']) && ($device['uptime'] != '0')) {
|
||||||
$btn_type = 'btn-warning';
|
$btn_type = 'btn-warning';
|
||||||
$c++;
|
$c++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user