Skip to content
GitLab
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
3a2162c3
Commit
3a2162c3
authored
Oct 24, 2014
by
Mike Hibler
Browse files
Make it work again.
parent
d5c30dd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_test/portstats.in
View file @
3a2162c3
...
...
@@ -316,6 +316,7 @@ elsif ($opt{p}) {
#
my
%portMap
=
mapPortsToDevices
(
@ports
);
my
%stats
=
();
my
@nports
=
();
DEVICE:
foreach
my
$name
(
keys
%portMap
)
{
my
@ports
=
@
{
$portMap
{
$name
}};
...
...
@@ -484,8 +485,10 @@ DEVICE: foreach my $name (keys %portMap) {
# Save for printing.
#
$stats
{(
Port
->
isPort
(
$port
)?
$port
->
toString
():
$port
)}
=
$result
;
push
@nports
,
$port
;
}
}
@ports
=
@nports
;
#
# Exit now if they wanted quiet operation
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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