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
5fb4a6f0
Commit
5fb4a6f0
authored
Sep 26, 2016
by
Leigh B Stoller
Browse files
Add some debugging code to track down an error that went by this
morning.
parent
e5a8d11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/libvtop_test.pm.in
View file @
5fb4a6f0
...
...
@@ -944,7 +944,15 @@ sub LoadPhysInfo($)
sub interfacespeedmbps($$$)
{
my ($self, $type, $which) = @_;
if (!exists($self->{'IFACECAPS'}->{$type})) {
print STDERR "interfacespeedmbps: $type does not exist\n";
return 0;
}
if (!exists($self->{'IFACECAPS'}->{$type}->{"${which}_defspeed"})) {
print STDERR "interfacespeedmbps: $type $which does not exist\n";
return 0;
}
return $self->{'IFACECAPS'}->{$type}->{"${which}_defspeed"}/1000.0;
}
...
...
Write
Preview
Supports
Markdown
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