#370 Missing Map Links due to inability to parse port speeds

This commit is contained in:
Oliver Gorwits
2018-03-05 21:42:02 +00:00
parent b940b799ac
commit 66ecb203a7
6 changed files with 26 additions and 16 deletions

View File

@@ -67,9 +67,7 @@ ajax '/ajax/data/device/netmappositions' => require_login sub {
sub to_speed {
my $speed = shift or return '';
$speed = SNMP::Info::munge_highspeed($speed);
$speed =~ s/(?:\s|bps)//g;
return $speed;
return SNMP::Info::munge_highspeed($speed / 1_000_000);
}
sub make_node_infostring {