def filesystem_space(self): """ Espaco livre no filesystem :return: """ disk_list = self.disklist(self.localdisk) sum = Storage.os_space_left(disk_list) self.diskspace = int(sum)
def disktime_localdisk(self): """ Calcula o tempo de disco em filesystem :return: """ disk_list = self.disklist(self.localdisk) sum = Storage.os_space_left(disk_list) self.diskspace = int(sum) self.days_left = int(self.diskspace / int(self.growth_avg))