Commit a7eda783 authored by Leigh B Stoller's avatar Leigh B Stoller

Helper function to set/clear idle_ignore and idleswap flags.

parent 05583576
......@@ -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.
#
......
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