Commit 9548f132 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix: change internal api for mem balooning

parent 51a092ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ class NodeHandler(RpcHandler):
            # one hour
            'cpu'       : self._tag_map_direct('get_cpu_core', 3600),
            'mem'       : self._tag_map_direct('get_mem', 3600),
            'memmax'    : self._tag_map_direct('get_mem_maxbaloon', 3600),
            'memmax'    : self._tag_map_direct('get_mem_max', 3600),
            'vncport'   : self._tag_map_direct('get_vnc_port', 3600),
            # one minute
            # 5 seconds
+1 −1
Original line number Diff line number Diff line
@@ -716,7 +716,7 @@ class LibvirtVm(VM):
        '''
        return self._domain.info()[2] * KILOBYTE_DIV
    
    def get_mem_maxbaloon(self):
    def get_mem_max(self):
        '''
        '''
        return self._domain.info()[1] * KILOBYTE_DIV