# HG changeset patch # User Alastair Tse # 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 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