def _set_capacity_to_response(self, rsp): total, used = lichbd.lichbd_get_capacity() rsp.totalCapacity = total rsp.availableCapacity = total - used
def _set_capacity_to_response(self, rsp): total = lichbd.lichbd_get_capacity() used = lichbd.lichbd_get_used() rsp.totalCapacity = total rsp.availableCapacity = total - used