提交 a84a267d 编写于 作者: A Amos Kong

netperf: fix a typo

We compute rpkt_per_exit by tx_pkts, and compute tpkt_per_exit
by rx_pkts. It's wrong.
Signed-off-by: NAmos Kong <akong@redhat.com>
上级 197e8eff
......@@ -314,10 +314,10 @@ def start_test(server, server_ctl, host, clients, resultsdir, l=60,
cpu = 100 - float(ret['mpstat'].split()[mpstat_index])
normal = thu / cpu
if ret.get('rx_pkts') and ret.get('irq_inj'):
ret['tpkt_per_exit'] = float(
ret['rpkt_per_exit'] = float(
ret['rx_pkts']) / float(ret['irq_inj'])
if ret.get('tx_pkts') and ret.get('io_exit'):
ret['rpkt_per_irq'] = float(
ret['tpkt_per_irq'] = float(
ret['tx_pkts']) / float(ret['io_exit'])
ret['size'] = int(i)
ret['sessions'] = int(j)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册