1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-18 21:09:41 +02:00

code quality

This commit is contained in:
dbarzin 2023-02-25 19:03:34 +01:00
parent 70fe7542d5
commit 20bf2dae31

View file

@ -51,9 +51,9 @@ for device in iter(monitor.poll, None):
if partition.device == device.device_node:
print("Mounted at {}".format(partition.mountpoint))
statvfs = os.statvfs(partition.mountpoint)
print("size %4.1fGB" %
print("size %4.1fGB" %
(statvfs.f_frsize * statvfs.f_blocks // 1024 // 1024 / 1024))
print("used %4.1fGB" %
print("used %4.1fGB" %
(statvfs.f_frsize * (statvfs.f_blocks - statvfs.f_bfree) // 1024 // 1024 / 1024))
found = True
loop += 1