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

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) { ...@@ -503,6 +503,12 @@ if ($thumb && !$idle) {
$swappable= $row["swappable"]; $swappable= $row["swappable"];
$swapreq=$row["swap_requests"]; $swapreq=$row["swap_requests"];
$lastswapreq=$row["lastreq"]; $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'");
$lastlogin = "<td>"; $lastlogin = "<td>";
if ($lastexpnodelogins = TBExpUidLastLogins($pid, $eid)) { if ($lastexpnodelogins = TBExpUidLastLogins($pid, $eid)) {
$daysidle=$lastexpnodelogins["daysidle"]; $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