提交 23d2d863 编写于 作者: J Ján Tomko

Fix return value of virCgroupGetPercpuStats

We need to return the number of successfully populated stats,
not the nparams supplied by the user.
上级 3e7e6ad6
......@@ -2897,7 +2897,7 @@ virCgroupGetPercpuStats(virCgroupPtr group,
goto cleanup;
}
rv = nparams;
rv = param_idx + 1;
cleanup:
VIR_FREE(buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册