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

[Xen-changelog] [xen-unstable] [XEND] Fix some bad names left behind while converting all storage to



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID a02f6d28eded3f395a6ac3cd63b9276fd820df36
# Parent  0a8b854697ad77bb16cc87739a89975655086c71
[XEND] Fix some bad names left behind while converting all storage to
bytes rather than KB.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendStorageRepository.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 0a8b854697ad -r a02f6d28eded 
tools/python/xen/xend/XendStorageRepository.py
--- a/tools/python/xen/xend/XendStorageRepository.py    Fri Oct 13 15:34:01 
2006 +0100
+++ b/tools/python/xen/xend/XendStorageRepository.py    Fri Oct 13 15:38:13 
2006 +0100
@@ -309,7 +309,7 @@ class XendStorageRepository:
             if self.storage_max != XEND_STORAGE_MAX_IGNORE:
                 return self.storage_max
             else:
-                return self.free_space_kb() + self.used_space_kb()
+                return self.free_space_bytes() + self.used_space_bytes()
         finally:
             self.lock.release()
             
@@ -321,7 +321,7 @@ class XendStorageRepository:
         try:
             total_used = 0
             for val in self.images.values():
-                total_used += val.get_physical_utilisation()
+                total_used += val.physical_utilisation
             return total_used
         finally:
             self.lock.release()

_______________________________________________
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®.