Commit 25188d29 authored by Mac Newbold's avatar Mac Newbold

Fix to last fix ... ;)

I was checking against the idle threshold (ie 2hrs) when I meant to check
against the idle window (5 min), and the result was that no idleswap
warning emails were getting sent. Doh!
parent 58c65a1a
......@@ -252,10 +252,10 @@ left join experiments as e on r.pid=e.pid and r.eid=e.eid
where swappable>0 and state="active" and idleswap>0 group by pid,eid
having idlemin+$idle_warnmin>=idleswap_timeout and
idlemin+$idle_warnmin<=idleswap_timeout+$window and
idlemin >= (60 * $threshold) order by pid,eid
idlemin >= $window order by pid,eid
EOT
$q = DBQueryFatal($sql);
if ($d) { print $sql,"\n",$q->as_string; $q->dataseek(0); }
if ($d) { print $sql,";\n",$q->as_string; $q->dataseek(0); }
# enable for extra debugging
if (0 && $q->numrows()>0) {
# SENDMAIL(To, Subject, Message, [From], [More Headers],...)
......
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