WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEND] Fix some bad names left behind whi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Fix some bad names left behind while converting all storage to
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:59 +0000
Delivery-date: Thu, 02 Nov 2006 21:41:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Fix some bad names left behind while converting all storage to, Xen patchbot-unstable <=