Commit 7e0dfa40 authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented cpuallocratio tag

parent dd82df2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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):