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:
parent
70fe7542d5
commit
20bf2dae31
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue