regolith-linux / regolith-i3xrocks-config

Regolith customization of i3xrocks.
Other
29 stars 49 forks source link

net-traffic cpu load w/ no or invalid network devices fix #111

Closed kgilmer closed 3 years ago

kgilmer commented 3 years ago

Capture error cases involving invalid network device paths and sleep before returning to resolve CPU consuming loop due to interval type of i3blocks. Addresses https://github.com/regolith-linux/regolith-desktop/issues/532.

Testing Done

  1. On local machine, observe issue when disabling wifi.
  2. Replace release version of net-traffic script with this
  3. disable and renable wifi
  4. observe no obvious increase load on machine based on network connectivity state
ploum commented 3 years ago

I confirm that the fix solves the issue for me.