Commit 9e170365 authored by Mike Hibler's avatar Mike Hibler
Browse files

Replace a hardwired constant "20" with...another hardwired constant "24"

describing the number of outlets possible on a power controller.
parent ae097403
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -444,7 +444,9 @@ sub dostatus(@) {
next;
}
}
for my $outlet (1..20) {
print "$ctrl Current: ", $status{current}, " Amps\n"
if defined($status{current});
for my $outlet (1..24) {
my $ostr = "outlet$outlet";
print "$ctrl Outlet $outlet: ", $status{$ostr}, "\n"
if (defined($status{$ostr}));
......@@ -467,7 +469,7 @@ sub dostatus(@) {
}
printf "$ctrl Temperature: %.1f F\n", $temp;
}
for my $outlet (1..20) {
for my $outlet (1..24) {
my $ostr = "outlet$outlet";
print "$ctrl Outlet $outlet: ", $status{$ostr}, "\n"
if (defined($status{$ostr}));
......
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