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

Christophe Fergeau cfergeau at redhat.com
Mon Sep 10 16:01:54 UTC 2012


On Mon, Sep 10, 2012 at 04:12:43PM +0300, Timo Juhani Lindfors wrote:
> ---
>  examples/config-demo.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/examples/config-demo.py b/examples/config-demo.py
> index 92e8a89..016f9bb 100644
> --- a/examples/config-demo.py
> +++ b/examples/config-demo.py
> @@ -4,7 +4,7 @@ from gi.repository import LibvirtGConfig;
>  
>  domain = LibvirtGConfig.Domain.new()
>  domain.set_name("foo")
> -domain.set_memory(1024*1024*1024)
> +domain.set_memory(1024*1024)

Maybe a comment explicitly saying it's 1GB would be helpful?
+domain.set_memory(1024*1024) # 1GB

ACK either way.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120910/4d3bb71d/attachment-0001.sig>


More information about the libvir-list mailing list