From 2e8c97d421924c1c3599f99e7ce0f769b676ebf1 Mon Sep 17 00:00:00 2001 From: Joe Haig Date: Sun, 19 Jun 2016 22:50:36 +0100 Subject: [PATCH] Correctly find Received Bytes --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 333b2244..0a5f85f8 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -110,7 +110,7 @@ function DisplayDashboard(){ $strRxPackets = $result[1]; preg_match( '/TX packets:(\d+)/',$strWlan0,$result ); $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]; preg_match( '/TX Bytes:(\d+ \(\d+.\d+ [K|M|G]iB\))/i',$strWlan0,$result ); $strTxBytes = $result[1];