Fixed regex in nuttcp script

Change-Id: Ib601da887f2eebf9c40c71b00fcbfba72b14baa6
This commit is contained in:
Kerim Gokarslan 2017-09-01 16:30:39 -07:00
parent 147a2cdec5
commit 9bd762708c
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ class NuttcpTool(PerfTool):
# megabytes=1083.4252 real_seconds=10.04 rate_Mbps=905.5953 tx_cpu=3 rx_cpu=19
# retrans=0 cwnd=3202 rtt_ms=0.55
re_tcp = \
r'rate_Mbps=([\d\.]*) tx_cpu=\d* rx_cpu=\d*' + \
'retrans=(\d*) cwnd=\d* rtt_ms=([\d\.]*)'
r'rate_Mbps=([\d\.]*) tx_cpu=\d* rx_cpu=\d*' \
' retrans=(\d*) cwnd=\d* rtt_ms=([\d\.]*)'
match = re.search(re_tcp, cmd_out)
if match:
rate_mbps = float(match.group(1))