From 70fe7542d5cdbdc1361d7f514657d018dea6cad7 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sat, 25 Feb 2023 19:02:42 +0100 Subject: [PATCH] code quality --- tests/detect-usb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/detect-usb.py b/tests/detect-usb.py index 5c3360a..1180a99 100755 --- a/tests/detect-usb.py +++ b/tests/detect-usb.py @@ -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: