提交 f2ab2aca 编写于 作者: W Wenli Quan

Use grep command to ignore the command line itself was added into ouput

Signed-off-by: NWenli Quan <wquan@redhat.com>
上级 c0935f76
......@@ -481,7 +481,7 @@ def launch_client(sessions, server, server_ctl, host, clients, l, nf_args,
"""
sum = 0
intr = []
stat = ssh_cmd(server_ctl, "cat /proc/interrupts |grep %s" % name)
stat = ssh_cmd(server_ctl, "grep %s /proc/interrupts" % name)
for i in stat.strip().split("\n"):
for cpu in range(int(ncpu)):
sum += int(i.split()[cpu + 1])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册