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

[Xen-changelog] [xen-unstable] [XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1169720973 0
# Node ID 32f7d3200a995c5ae9b0819c63d51c51e2febe73
# Parent  e75107963846bf053f270deb921b36e57860102a
[XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature

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

diff -r e75107963846 -r 32f7d3200a99 tools/python/xen/xend/XendMonitor.py
--- a/tools/python/xen/xend/XendMonitor.py      Wed Jan 24 18:30:07 2007 +0000
+++ b/tools/python/xen/xend/XendMonitor.py      Thu Jan 25 10:29:33 2007 +0000
@@ -220,11 +220,11 @@ class XendMonitor(threading.Thread):
         while True:
             self.lock.acquire()
             try:
-                active_domids = set()
+                active_domids = []
                 # Calculate utilisation for VCPUs
                 
                 for domid, cputimes in self._get_cpu_stats().items():
-                    active_domids.add(domid)
+                    active_domids.append(domid)
                     if domid not in self._domain_vcpus:
                         # if not initialised, save current stats
                         # and skip utilisation calculation

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