Commit 7ea30876 authored by Mac Newbold's avatar Mac Newbold
Browse files

If it has been active since the last swap request was sent, clear the swap

request counter.
parent 66360b10
......@@ -503,6 +503,12 @@ if ($thumb && !$idle) {
$swappable= $row["swappable"];
$swapreq=$row["swap_requests"];
$lastswapreq=$row["lastreq"];
if ($lastswapreq > $idletime) {
# My last request was from _before_ it was idle this time
mysql_query("update experiments set swap_requests='' ".
"where pid='$pid' and eid='$eid'");
$swapreq=0;
}
$lastlogin = "<td>";
if ($lastexpnodelogins = TBExpUidLastLogins($pid, $eid)) {
$daysidle=$lastexpnodelogins["daysidle"];
......
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