Commit 5fb4a6f0 authored by Leigh Stoller's avatar Leigh Stoller

Add some debugging code to track down an error that went by this

morning.
parent e5a8d11a
......@@ -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;
}
......
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