mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
Fix return value of virCgroupGetPercpuStats
We need to return the number of successfully populated stats, not the nparams supplied by the user.
This commit is contained in:
parent
3e7e6ad6ee
commit
23d2d863b7
@ -2897,7 +2897,7 @@ virCgroupGetPercpuStats(virCgroupPtr group,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
rv = nparams;
|
||||
rv = param_idx + 1;
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user