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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpswkJJ8uF_4.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]