Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
e56c8e96
Commit
e56c8e96
authored
Aug 10, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to power saving mods.
parent
4c2fd978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tbsetup/power.in
tbsetup/power.in
+5
-4
No files found.
tbsetup/power.in
View file @
e56c8e96
...
@@ -451,8 +451,9 @@ foreach my $power_id (keys %outlets) {
...
@@ -451,8 +451,9 @@ foreach my $power_id (keys %outlets) {
}
}
if
(
!
$errors
)
{
if
(
!
$errors
)
{
foreach
my
$node
(
@nodes
)
{
foreach
my
$nodeid
(
@nodes
)
{
print
"
$node
now
",(
$op
eq
"
cycle
"
?
"
rebooting
"
:
$op
),"
\n
";
my
$node
=
$nodes
{
$nodeid
};
print
"
$nodeid
now
",(
$op
eq
"
cycle
"
?
"
rebooting
"
:
$op
),"
\n
";
if
(
$sendevent
)
{
if
(
$sendevent
)
{
my
$oldstate
=
$node
->
eventstate
();
my
$oldstate
=
$node
->
eventstate
();
my
$newstate
;
my
$newstate
;
...
@@ -477,8 +478,8 @@ foreach my $power_id (keys %outlets) {
...
@@ -477,8 +478,8 @@ foreach my $power_id (keys %outlets) {
$node
->
SetEventState
(
$newstate
)
$node
->
SetEventState
(
$newstate
)
if
(
defined
(
$newstate
)
&&
$newstate
ne
$oldstate
);
if
(
defined
(
$newstate
)
&&
$newstate
ne
$oldstate
);
}
}
push
(
@wolnodes
,
$node
)
push
(
@wolnodes
,
$node
id
)
if
(
$postwol
{
$node
});
if
(
$postwol
{
$node
id
});
}
}
}
else
{
}
else
{
$exitval
+=
$errors
;
$exitval
+=
$errors
;
...
...
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