1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

code quality

This commit is contained in:
dbarzin 2023-02-25 19:02:42 +01:00
parent 948e5542f6
commit 70fe7542d5

View file

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