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:
parent
948e5542f6
commit
70fe7542d5
1 changed files with 4 additions and 4 deletions
|
@ -51,10 +51,10 @@ 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" % (statvfs.f_frsize * statvfs.f_blocks
|
||||
// 1024 // 1024 / 1024))
|
||||
print("used %4.1fGB" % (statvfs.f_frsize * (statvfs.f_blocks - statvfs.f_bfree)
|
||||
// 1024 // 1024 / 1024))
|
||||
print("size %4.1fGB" %
|
||||
(statvfs.f_frsize * statvfs.f_blocks // 1024 // 1024 / 1024))
|
||||
print("used %4.1fGB" %
|
||||
(statvfs.f_frsize * (statvfs.f_blocks - statvfs.f_bfree) // 1024 // 1024 / 1024))
|
||||
found = True
|
||||
loop += 1
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue