mirror of
https://github.com/unraid/webgui.git
synced 2026-03-12 22:09:53 -05:00
Minor update: insert space in ethernet speed display
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user