]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC: show used memory as 0 when domain is not active
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Thu, 17 Jul 2014 09:28:29 +0000 (17:28 +0800)
committerGao feng <gaofeng@cn.fujitsu.com>
Wed, 23 Jul 2014 07:12:52 +0000 (15:12 +0800)
commit1ce7c1d20cfd5afb26d2dbc88201085d52415d0e
tree6238625c70dd090507616285df6279fa71487a62
parent26d67015b8cf3e69fb22f4472b9fe5e14a4162e3
LXC: show used memory as 0 when domain is not active

Before:
virsh # dominfo chx3
State:          shut off
Max memory:     92160 KiB
Used memory:    92160 KiB

After:
virsh # dominfo container1
State:          shut off
Max memory:     92160 KiB
Used memory:    0 KiB

Similar to qemu cases.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c