Skip to content
Snippets Groups Projects
Commit 7e0dfa40 authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented cpuallocratio tag

parent dd82df2b
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ class Handler(HostHandler):
# update connection state
self.virt_connected = False
# refresh those tags
for tag in ('cpualloc', 'cpurunning', 'cpuremaining', 'memalloc', 'memrunning', 'memremaining'):
for tag in ('cpualloc', 'cpurunning', 'cpuremaining', 'cpuallocratio', 'memalloc', 'memrunning', 'memremaining', 'memallocratio'):
self.tag_db['__main__'][tag].update_value()
# unregister tags that will be re registered later
......
......@@ -200,8 +200,8 @@ class KVM(object):
"""Update domain state count tags."""
# update domain state counts
for tag in ('nvm', 'vmpaused', 'vmstarted', 'vmstopped', 'cpualloc',
'cpurunning', 'cpuremaining', 'memalloc', 'memrunning',
'memremaining'):
'cpurunning', 'cpuremaining', 'cpuallocratio', 'memalloc',
'memrunning', 'memremaining', 'memallocratio'):
self.handler.tag_db['__main__'][tag].update_value()
def vm_define(self, xml_desc):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment