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

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



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: pgpRxzUMluCWs.pgp
Description: PGP signature


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