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

Added memremaining tag

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

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

    def vm_define(self, xml_desc):
+1 −1

File changed.

Contains only whitespace changes.