[libvirt] [libvirt-glib 1/2] Use 1 GB of RAM in Python example (instead of 1 TB)

Timo Juhani Lindfors timo.lindfors at iki.fi
Tue Sep 11 07:37:23 UTC 2012


Christophe Fergeau <cfergeau at redhat.com> writes:
> Maybe a comment explicitly saying it's 1GB would be helpful?
> +domain.set_memory(1024*1024) # 1GB

Good question. My first reaction is that if such a simple example needs
extra comments maybe it'd be nicer if the API offered "set_memory_kb"?




More information about the libvir-list mailing list