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