ia64/xen-unstable

changeset 12126:a02f6d28eded

[XEND] Fix some bad names left behind while converting all storage to
bytes rather than KB.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Oct 13 15:38:13 2006 +0100 (2006-10-13)
parents 0a8b854697ad
children d34c657e5c74
files tools/python/xen/xend/XendStorageRepository.py
line diff
     1.1 --- a/tools/python/xen/xend/XendStorageRepository.py	Fri Oct 13 15:34:01 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendStorageRepository.py	Fri Oct 13 15:38:13 2006 +0100
     1.3 @@ -309,7 +309,7 @@ class XendStorageRepository:
     1.4              if self.storage_max != XEND_STORAGE_MAX_IGNORE:
     1.5                  return self.storage_max
     1.6              else:
     1.7 -                return self.free_space_kb() + self.used_space_kb()
     1.8 +                return self.free_space_bytes() + self.used_space_bytes()
     1.9          finally:
    1.10              self.lock.release()
    1.11              
    1.12 @@ -321,7 +321,7 @@ class XendStorageRepository:
    1.13          try:
    1.14              total_used = 0
    1.15              for val in self.images.values():
    1.16 -                total_used += val.get_physical_utilisation()
    1.17 +                total_used += val.physical_utilisation
    1.18              return total_used
    1.19          finally:
    1.20              self.lock.release()