Commit dd82df2b authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented cpuremaining tag

parent ce7babc5
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', 'memalloc', 'memrunning', 'memremaining'):
        for tag in ('cpualloc', 'cpurunning', 'cpuremaining', 'memalloc', 'memrunning', 'memremaining'):
            self.tag_db['__main__'][tag].update_value()

        # unregister tags that will be re registered later
+2 −1
Original line number Diff line number Diff line
@@ -200,7 +200,8 @@ class KVM(object):
        """Update domain state count tags."""
        # update domain state counts
        for tag in ('nvm', 'vmpaused', 'vmstarted', 'vmstopped', 'cpualloc',
                    'cpurunning', 'memalloc', 'memrunning', 'memremaining'):
                    'cpurunning', 'cpuremaining', 'memalloc', 'memrunning',
                    'memremaining'):
            self.handler.tag_db['__main__'][tag].update_value()

    def vm_define(self, xml_desc):