Skip to content

Conversation

@pilatomic
Copy link

@pilatomic pilatomic commented Jan 12, 2026

Fix the display of the USB speed :

  1. Speeds in Gpbs are not converted before being displayed (unit is Gpbs, but the actual value is still in Mbps)
  2. Speeds that were not integer caused the function to fail.

To fix it, I replaced all the %d strings by %s, so that we can directly print strings.
When the speed is high enough, we still convert it to Gpbs
When it isnt, directly print the value obtained, it is already in Mbps and requires no conversion.

Closes #111

(It builds upon my previous MR #113)

I still need to test on another PC with 20 gpbs USB, hence marking as "draft" for one day.

@pilatomic
Copy link
Author

I can confirm all the speed are displayed correctly (both in the "Speed" column and in controller names)

Before :
Capture d’écran du 2026-01-12 13-33-53

After :
Capture d’écran du 2026-01-13 08-15-34

Removing the "draft" status

@pilatomic pilatomic marked this pull request as ready for review January 13, 2026 07:16
@pilatomic pilatomic mentioned this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

USB 1.5 Mbps speed is not formatted correctly

1 participant