From 948e5542f6fec0388dafe73ef293837e13105433 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sat, 25 Feb 2023 19:01:07 +0100 Subject: [PATCH] code quality --- tests/detect-usb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/detect-usb.py b/tests/detect-usb.py index 234e29d..5c3360a 100755 --- a/tests/detect-usb.py +++ b/tests/detect-usb.py @@ -51,8 +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: