1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Correctly find Received Bytes

This commit is contained in:
Joe Haig 2016-06-19 22:50:36 +01:00
parent 098caa1262
commit 2e8c97d421

View File

@ -110,7 +110,7 @@ function DisplayDashboard(){
$strRxPackets = $result[1]; $strRxPackets = $result[1];
preg_match( '/TX packets:(\d+)/',$strWlan0,$result ); preg_match( '/TX packets:(\d+)/',$strWlan0,$result );
$strTxPackets = $result[1]; $strTxPackets = $result[1];
preg_match( '//RX bytes:(\d+)/i',$strWlan0,$result ); preg_match( '/RX bytes:(\d+ \(\d+.\d+ [K|M|G]iB\))/i',$strWlan0,$result );
$strRxBytes = $result[1]; $strRxBytes = $result[1];
preg_match( '/TX Bytes:(\d+ \(\d+.\d+ [K|M|G]iB\))/i',$strWlan0,$result ); preg_match( '/TX Bytes:(\d+ \(\d+.\d+ [K|M|G]iB\))/i',$strWlan0,$result );
$strTxBytes = $result[1]; $strTxBytes = $result[1];