Merge pull request #3009 from Morrvick/patch-1

Ignore devices that do not provide an uptime statistic.
This commit is contained in:
Daniel Preussker
2016-02-16 09:34:22 +00:00

View File

@ -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++;
}