mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Ignore devices that do not provide an uptime statistic.
Hundreds of my devices do not supply an uptime in their data. This causes lots of useless warnings in my availability map. This tweak corrects that.
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