[X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
[X] I have specifically verified that this bug is not a common user error
[X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)
Description of the bug
The values returned by the EWW_NET magic variable is always twice and rarely even three times the real amount.
Reproducing the issue
Start continuously checking the EWW_NET reported download throughput in megabits per second (replace the interface in the jq command with the active one on your machine):
while true; do eww get EWW_NET | jq '.wlp6s0.NET_DOWN' | xargs bash -c 'echo $(($0 * 8 / 1000000))' ; sleep 2; done
Go to https://www.speedtest.net/ and start a speedtest (or start any other network benchmark of your choice).
Observe the difference between what the benchmark displays and what the EWW_NET variable contains.
Repeat the experiment for the NET_UP value and observe the same behavior.
Expected behaviour
The values reported by EWW_NET should be close to the actual value.
Additional context
Various other applications, e.g. btop++ or KDE Plasma's network widget, measure the throughput just fine.
Checklist before submitting an issue
Description of the bug
The values returned by the
EWW_NET
magic variable is always twice and rarely even three times the real amount.Reproducing the issue
EWW_NET
reported download throughput in megabits per second (replace the interface in thejq
command with the active one on your machine):EWW_NET
variable contains.NET_UP
value and observe the same behavior.Expected behaviour
The values reported by
EWW_NET
should be close to the actual value.Additional context
Various other applications, e.g. btop++ or KDE Plasma's network widget, measure the throughput just fine.