Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7ea30876
Commit
7ea30876
authored
Apr 09, 2003
by
Mac Newbold
Browse files
If it has been active since the last swap request was sent, clear the swap
request counter.
parent
66360b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showexp_list.php3
View file @
7ea30876
...
...
@@ -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"
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment