MatthiasSchinzel / sysmon

Graphical system monitor for linux, including information about CPU, GPU, Memory, HDD/SDD and your network connections. Similar to windows task manager.
GNU General Public License v3.0
296 stars 25 forks source link

Incorrect display of wlan speeds over 1000 mbit #8

Open Kennylives opened 4 years ago

Kennylives commented 4 years ago

First of, great tool!

Onto the issue: When the wifi speed is under 1 gbit/s it shows correctly as (let's say) 864.6 Mbit/s When the wifi speed is over 1 gbit/s either the decimal point is misplaced, or the unit doesn't get updated from Mbit to Gbit: 1.0887 Mbit/s wifi_slow wifi_fast

Also, but I'm unsure if that's correct or not, the speed value displayed is only the "tx" value. The "rx" is ignored. for example from the 864.6 Mbit speed screenshot, iw wlan0 link: rx bitrate: 1253.9 MBit/s 160MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 864.8 MBit/s 160MHz HE-MCS 8 HE-NSS 1 HE-GI 0 HE-DCM 0

MatthiasSchinzel commented 4 years ago

Thank you so much for your help! You have a really fast wifi connection! I agree, the comma is misplaced. I will try to recreate your problem, but I think my wifi is slower. Can I ask you where you got this information from?

rx bitrate: 1253.9 MBit/s 160MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 864.8 MBit/s 160MHz HE-MCS 8 HE-NSS 1 HE-GI 0 HE-DCM 0

So far I used iwconfig for this information, but your data seems to be more detailed.

Kennylives commented 4 years ago

I'm using arch and it's this package: https://www.archlinux.org/packages/core/x86_64/iw/

it's advertised as the replacement for iwconfig: https://wireless.wiki.kernel.org/en/users/documentation/iw

Command used: iw wlan0 link Output: Connected to (mac address redacted) (on wlan0) SSID: (redacted) freq: 5260 RX: 2310815418 bytes (1566766 packets) TX: 39608657 bytes (299268 packets) signal: -58 dBm rx bitrate: 1441.3 MBit/s 160MHz HE-MCS 7 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 1253.9 MBit/s 160MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0

bss flags: short-preamble short-slot-time dtim period: 1 beacon int: 100

MatthiasSchinzel commented 4 years ago

iw looks great! We should switch to that tool instead of iwconfig!