mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[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:
1 parent
eca8b2ee32
commit
f3dac803d3
1 file changed
+2
-2
@@ -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
|
||||
|
||||