diff --git a/html/includes/table/poll-log.inc.php b/html/includes/table/poll-log.inc.php index 722c47d314..55efcb34b8 100644 --- a/html/includes/table/poll-log.inc.php +++ b/html/includes/table/poll-log.inc.php @@ -19,6 +19,10 @@ if (isset($searchPhrase) && !empty($searchPhrase)) { $sql .= " AND (hostname LIKE '%$searchPhrase%' OR last_polled LIKE '%$searchPhrase%' OR last_polled_timetaken LIKE '%$searchPhrase%')"; } +if ($_POST['type'] == "unpolled") { + $sql .= " AND `last_polled` <= DATE_ADD(NOW(), INTERVAL - 15 minute)"; +} + if (!isset($sort) || empty($sort)) { $sort = 'last_polled_timetaken DESC'; } diff --git a/html/index.php b/html/index.php index 1005a83900..df6c720bc4 100644 --- a/html/index.php +++ b/html/index.php @@ -320,7 +320,7 @@ echo('