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
a7eda783
Commit
a7eda783
authored
Aug 09, 2013
by
Leigh B Stoller
Browse files
Helper function to set/clear idle_ignore and idleswap flags.
parent
05583576
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Experiment.pm.in
View file @
a7eda783
...
...
@@ -3136,6 +3136,22 @@ sub UpdateIdleSwapTime($$)
return
0
;
}
#
#
Set
the
idle
swap
flags
.
#
sub
SetIdleSwapFlags
($$$)
{
my
($
self
,
$
idleswap
,
$
idleignore
)
=
@
_
;
$
idleswap
=
($
idleswap
?
1
:
0
);
$
idleignore
=
($
idleignore
?
1
:
0
);
return
-
1
if
(
! $self->Update({'idleswap' => $idleswap,
'idle_ignore'
=>
$
idleignore
}));
return
0
;
}
#
#
Experiment
tables
.
#
...
...
Write
Preview
Markdown
is supported
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