mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02: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) {
|
||||
if ($device['status'] == '1') {
|
||||
$btn_type = 'btn-success';
|
||||
if ($device['uptime'] < $config['uptime_warning']) {
|
||||
if (($device['uptime'] < $config['uptime_warning']) && ($device['uptime'] != '0')) {
|
||||
$btn_type = 'btn-warning';
|
||||
$c++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user