Revision 842
Added by Borja Sotomayor over 13 years ago
resourcepool.py | ||
---|---|---|
263 | 263 |
h = {} |
264 | 264 |
h["id"] = self.id |
265 | 265 |
h["hostname"] = self.hostname |
266 |
h["cpu"] = self.capacity.get_quantity(constants.RES_CPU)
|
|
266 |
h["cpu"] = sum(self.capacity.quantity[constants.RES_CPU])
|
|
267 | 267 |
h["mem"] = self.capacity.get_quantity(constants.RES_MEM) |
268 | 268 |
|
269 | 269 |
return h |
Also available in: Unified diff
When marshalling the information about a host, include the sum of all the CPU instances (not entirely accurate, but still better than just reporting the first instance)