def used_blocks(self, timeout=None): blocks = ping_server.live_blocks(self.server,timeout) log.debug('used_blocks: %s'%blocks) if blocks: return ping_server.used_blocks(blocks) return {}
def used_blocks(self, timeout=None): blocks = ping_server.live_blocks(self.server, timeout) log.debug('used_blocks: %s' % blocks) if blocks: return ping_server.used_blocks(blocks) return {}
def free_blocks(self, timeout=None): blocks = ping_server.live_blocks(self.server,timeout) log.debug('live_blocks: %s'%blocks) return ping_server.free_blocks(blocks)
def free_blocks(self, timeout=None): blocks = ping_server.live_blocks(self.server, timeout) log.debug('live_blocks: %s' % blocks) return ping_server.free_blocks(blocks)