mirror of
https://github.com/librenms/librenms.git
synced 2024-09-29 06:16:43 +00:00
Updated checks on poller time
This commit is contained in:
parent
6a6a9c7b36
commit
2618f14826
@ -29,9 +29,9 @@ $query = "SELECT *,UNIX_TIMESTAMP(NOW()) AS `now`, UNIX_TIMESTAMP(`last_polled`)
|
||||
|
||||
foreach (dbFetchRows($query) as $poller) {
|
||||
$old = $poller['now'] - $poller['then'];
|
||||
if ($old > 600) {
|
||||
if ($old >= 300) {
|
||||
$row_class = 'danger';
|
||||
} elseif ($old >= 280 && $old <= 300) {
|
||||
} elseif ($old >= 280 && $old < 300) {
|
||||
$row_class = 'warning';
|
||||
} else {
|
||||
$row_class = 'success';
|
||||
|
Loading…
Reference in New Issue
Block a user