From a4dd5c91c93cfade6188cb2136c8dcdbbbaf9c98 Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 30 Dec 2016 19:43:28 -0600 Subject: [PATCH] One minor syntax issue --- poller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poller.php b/poller.php index 4f46e218a..c00c3ee0c 100644 --- a/poller.php +++ b/poller.php @@ -358,8 +358,8 @@ while ($poller_runs_completed < $poller_runs) { ON po.local_data_id=dl.id LEFT JOIN host AS h ON dl.host_id=h.id - WHERE h.poller_id = ? OR h.id IS NULL - AND time < DATE_SUB(CURDATE(), INTERVAL 10 MINUTE) + WHERE (h.poller_id = ? OR h.id IS NULL) + AND time < FROM_UNIXTIME(UNIX_TIMESTAMP()-600) LIMIT ' . $issues_limit, array($poller_id)); }else{ $issues = array();