From e2a5a4b302e48fd058ac2ecb7378168389964d26 Mon Sep 17 00:00:00 2001 From: Pila Date: Mon, 12 Jan 2026 21:34:27 +0100 Subject: [PATCH] Fix USB speed display --- usr/lib/linuxmint/mintreport/usb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/lib/linuxmint/mintreport/usb.py b/usr/lib/linuxmint/mintreport/usb.py index 6d70739..8598df4 100644 --- a/usr/lib/linuxmint/mintreport/usb.py +++ b/usr/lib/linuxmint/mintreport/usb.py @@ -32,13 +32,14 @@ def decode_power(device): def speed_label(speed_mbps): try: - val = int(speed_mbps) + val = float(speed_mbps) except Exception: return speed_mbps + if val >= 10000: - return _("%d Gbps") % val + return _("%s Gbps") % ("%d" % (val / 1000)) else: - return _("%d Mbps") % val + return _("%s Mbps") % speed_mbps def usb_limit(version): try: