I3status-rust: net block shows speeds regardless of config

Created on 7 Jul 2020  路  8Comments  路  Source: greshake/i3status-rust

After updating my current config shows fields that it didn't before. Even though i have set

[[block]]
block = "net"
device = "ppp0"
hide_inactive = true
hide_missing = true
interval = 10
speed_up = false
speed_down = false
ip = false

[[block]]
block = "net"
device = "eno1"
hide_inactive = true
hide_missing = true
interval = 10
speed_up = false
speed_down = false
ip = false

[[block]]
block = "net"
device = "wlp2s0"
signal_strength = true
interval = 10
speed_up = false
speed_down = false
ip = false

The blocks show some speeds:
image

This is probably unintended and should be fixed?

_Originally posted by @GladOSkar in https://github.com/greshake/i3status-rust/issues/467#issuecomment-654886404_

bug

Most helpful comment

Confirming the issue. Will send a fix soon.

All 8 comments

Hmm I can't seem to reproduce with just:

[[block]]
block = "net"
speed_up = false
speed_down = false

nor

[[block]]
block = "net"
device = "enp3s0"
hide_inactive = true
hide_missing = true
interval = 10
speed_up = false
speed_down = false
ip = false

I just had a look again. When i change format back to:

[[block]]
block = "net"
speed_up = false
speed_down = false

It shows the speed again:

Peek 2020-07-07 16-16

I built from the master i _just_ pulled. Weird.

Actually my bad, I was testing on another branch. Able to repro now.

@gurditsbedi Are you able to have a look?

I have the same... running on Arch: 0.14.1.r1225.gc9d5f3e-1,that means I'm on this commit and the problem exists: https://github.com/greshake/i3status-rust/commit/c9d5f3e710ac5ade11956012672591ffc33e9f71

Confirming the issue. Will send a fix soon.

Closing via #767

Tested fine for me, please re-open if anyone still has issues.

Works. Thanks!

Was this page helpful?
0 / 5 - 0 ratings