We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b379e09 commit aa5bed1Copy full SHA for aa5bed1
1 file changed
usr/lib/linuxmint/mintreport/usb.py
@@ -32,13 +32,14 @@ def decode_power(device):
32
33
def speed_label(speed_mbps):
34
try:
35
- val = int(speed_mbps)
+ val = float(speed_mbps)
36
except Exception:
37
return speed_mbps
38
+
39
if val >= 10000:
- return _("%d Gbps") % val
40
+ return _("%d Gbps") % (val / 1000)
41
else:
- return _("%d Mbps") % val
42
+ return _("%s Mbps") % speed_mbps
43
44
def usb_limit(version):
45
0 commit comments