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

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2007-01-25 10:29:33 +00:00
1 parent eca8b2ee32
commit f3dac803d3
1 file changed
+2 -2
+2 -2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.