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

[Xen-changelog] Match rename of free_pages field to free_memory



# HG changeset patch
# User rread@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 9ff0a75fc3f703663f49df93d385624b819862b4
# Parent  6bc8ceab6dff49acb63f88ed2bb7403111330b29
Match rename of free_pages field to free_memory

Signed-off-by: Robert Read <rread@xxxxxxxxxxxxx>

diff -r 6bc8ceab6dff -r 9ff0a75fc3f7 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Thu Dec  1 03:07:24 2005
+++ b/tools/python/xen/xm/create.py     Thu Dec  1 03:11:49 2005
@@ -821,7 +821,7 @@
     ret = 1
 
     xc = xen.lowlevel.xc.xc()
-    free_mem = xc.physinfo()['free_pages'] / 256
+    free_mem = xc.physinfo()['free_memory']
     domU_need_mem = opts.vals.memory + SLACK 
 
     # we already have enough free memory, return success
@@ -839,7 +839,7 @@
     while timeout > 0:
         time.sleep(0.1) # sleep 100ms
 
-        free_mem = xc.physinfo()['free_pages'] / 256
+        free_mem = xc.physinfo()['free_memory']
         if free_mem >= domU_need_mem:
             ret = 0
             break

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.