refactor(utils): maybe make fsavail an int?

This commit is contained in:
Houkime 2024-07-25 17:29:16 +00:00
parent af014e8b83
commit f8c6a8b9d6

View file

@ -54,6 +54,7 @@ class BlockDevice:
def update_from_dict(self, device_dict: dict): def update_from_dict(self, device_dict: dict):
self.name = device_dict["name"] self.name = device_dict["name"]
self.path = device_dict["path"] self.path = device_dict["path"]
# why is it string?
self.fsavail = str(device_dict["fsavail"]) self.fsavail = str(device_dict["fsavail"])
self.fssize = str(device_dict["fssize"]) self.fssize = str(device_dict["fssize"])
self.fstype = device_dict["fstype"] self.fstype = device_dict["fstype"]