Minor update: insert space in ethernet speed display

This commit is contained in:
bergware
2016-05-16 07:58:25 +02:00
parent 9f80ab8bd8
commit 7c4db22e24
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ case 'port':
} else {
unset($info);
exec("ethtool $port|grep -Po '^\s+(Speed|Duplex|Link\sdetected): \K[^U\\n]+'",$info);
$ports[$i++] = (array_pop($info)=='yes' && $info[0]) ? "{$info[0]}, ".strtolower($info[1])." duplex, mtu $mtu" : "not connected";
$ports[$i++] = (array_pop($info)=='yes' && $info[0]) ? str_replace('M',' M',$info[0]).", ".strtolower($info[1])." duplex, mtu $mtu" : "not connected";
}
}
break;