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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [XEND] Remove usage of set() in XendMonit

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 08:55:47 -0800
Delivery-date: Thu, 25 Jan 2007 08:58:30 -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>
# 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:
-                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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature, Xen patchbot-unstable <=