提交 54fd8d5e 编写于 作者: D Daniel P. Berrangé

domtop: remove unused domain name parameter

Reviewed-by: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 a80ba808
...@@ -186,8 +186,7 @@ fetch_domains(virConnectPtr conn) ...@@ -186,8 +186,7 @@ fetch_domains(virConnectPtr conn)
} }
static void static void
print_cpu_usage(const char *dom_name, print_cpu_usage(size_t cpu,
size_t cpu,
size_t ncpus, size_t ncpus,
unsigned long long then, unsigned long long then,
virTypedParameterPtr then_params, virTypedParameterPtr then_params,
...@@ -333,7 +332,7 @@ do_top(virConnectPtr conn, ...@@ -333,7 +332,7 @@ do_top(virConnectPtr conn,
goto cleanup; goto cleanup;
} }
print_cpu_usage(dom_name, 0, max_id, print_cpu_usage(0, max_id,
then.tv_sec * 1000000 + then.tv_usec, then.tv_sec * 1000000 + then.tv_usec,
then_params, then_nparams, then_params, then_nparams,
now.tv_sec * 1000000 + now.tv_usec, now.tv_sec * 1000000 + now.tv_usec,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册