rgbkrk / libvirt-go

[DEPRECATED] Go bindings for libvirt
https://github.com/libvirt/libvirt-go
MIT License
166 stars 50 forks source link

add memoryStats and getVcpus #52

Closed farss closed 9 years ago

farss commented 9 years ago

can you add memoryStats and getVcpus function Thank you

alexzorin commented 9 years ago

I couldn't get memoryStats to work on lxc, but to be honest I don't think it is a code error but rather to do with the setup of lxc/cgroups in the test environment.

Check the branch out, let me know if it works for you: https://github.com/alexzorin/libvirt-go/commit/4d7615f943156add6fea5f814139d8c2d01bcad2

I'm not keen on spending any real amount of time on this, so it'll be up to you if want to see it merged

farss commented 9 years ago

Thank you @alexzorin It looks well on kvm/qemu

farss commented 9 years ago

It works!