Commit 35f9e55b authored by David Johnson's avatar David Johnson

Fix the comon alive query so it's sane.

parent e9758298
...@@ -1667,8 +1667,9 @@ function pm_buildqueryinfo() { ...@@ -1667,8 +1667,9 @@ function pm_buildqueryinfo() {
if (strlen($q_quickfs) > 0) { if (strlen($q_quickfs) > 0) {
$q_quickfs .= " and "; $q_quickfs .= " and ";
} }
$q_quickfs .= " (pcd.lastcotop - now()) < 600" . $q_quickfs .= " pcd.lastcotop < 305 and pcd.resptime > 0 " .
" and pcd.lastcotop is not null"; " and pcd.lastcotop is not null " .
" and (now() - from_unixtime(pcd.date)) < " . (12*60*60);
} }
} }
if (isset($hostfilter) && $hf_regexp == 0) { if (isset($hostfilter) && $hf_regexp == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment