Commit 77487dcf authored by Mac Newbold's avatar Mac Newbold

Small change for idle view. Even if we don't show the redball link for the

experiment, show how many swap requests have been sent and when.
parent 5ec72524
...@@ -290,19 +290,19 @@ if (mysql_num_rows($experiments_result)) { ...@@ -290,19 +290,19 @@ if (mysql_num_rows($experiments_result)) {
isset($perexp_usage["$pid:$eid"]["pc"])) { isset($perexp_usage["$pid:$eid"]["pc"])) {
$pcs = $perexp_usage["$pid:$eid"]["pc"]; $pcs = $perexp_usage["$pid:$eid"]["pc"];
} else { $pcs=0; } } else { $pcs=0; }
$foo .= "<td align=center valign=center>\n";
if ($inactive[$expt]==1 && $stale[$expt]!=1 && if ($inactive[$expt]==1 && $stale[$expt]!=1 &&
!$slothderr && $pcs) { !$slothderr && $pcs) {
$foo .= "<td align=center valign=center> $foo .= " <a href=\"request_swapexp.php3?pid=$pid&eid=$eid\">
<a href=\"request_swapexp.php3?pid=$pid&eid=$eid\">
<img src=\"redball.gif\"></a>\n" ; <img src=\"redball.gif\"></a>\n" ;
if ($swapreq > 0) {
$foo .= "&nbsp;$swapreq&nbsp;sent ${lastswapreq}&nbsp;hrs&nbsp;ago\n";
}
$foo .= "</td>\n";
} else { } else {
if (!$pcs) { $foo .= "<td>(no PCs)</td>\n"; } if (!$pcs) { $foo .= "(no PCs)\n"; }
else { $foo .="<td>&nbsp;</td>\n"; } else { $foo .="&nbsp;"; }
}
if ($swapreq > 0) {
$foo .= "&nbsp;$swapreq&nbsp;sent ${lastswapreq}&nbsp;hrs&nbsp;ago\n";
} }
$foo .= "</td>\n";
} }
if ($idle && ($str=="&nbsp;" || !$pcs)) { continue; } if ($idle && ($str=="&nbsp;" || !$pcs)) { continue; }
......
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