mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
LXC: check whether we get MemSwap[Total|Usage]
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
aa990efe97
commit
ae38288b8a
@ -288,8 +288,11 @@ int virLXCCgroupGetMeminfo(virLXCMeminfoPtr meminfo)
|
||||
if (virLXCCgroupGetMemUsage(cgroup, meminfo) < 0)
|
||||
goto cleanup;
|
||||
|
||||
virLXCCgroupGetMemSwapTotal(cgroup, meminfo);
|
||||
virLXCCgroupGetMemSwapUsage(cgroup, meminfo);
|
||||
if (virLXCCgroupGetMemSwapTotal(cgroup, meminfo) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virLXCCgroupGetMemSwapUsage(cgroup, meminfo) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user