Followup to the previous one. Output of size function is rounded to the first decimal so output doesn't look too cluttered

This commit is contained in:
Werner Llácer 2021-11-08 19:58:11 +01:00
parent 6d0c55e5d6
commit 80a406c930
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class BlockDevice:
return partition.get('uuid', None)
def convert_size_to_gb(self, size):
return size / GIGA
return round(size / GIGA,1)
@property
def size(self):