Skip to content

Commit

Permalink
fix(linux/net): 🐛 treat unknown link state as down state
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Nov 7, 2024
1 parent 6ccfc99 commit 813485e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/linux/net/linkSensors.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ func newLinkSensor(msg rtnetlink.LinkMessage) *sensor.Entity {
case rtnetlink.OperStateNotPresent:
link.Value = "invalid"
link.Icon = "mdi:close-network"
case rtnetlink.OperStateUnknown:
link.Value = "unknown"
link.Icon = "mdi:help-network"
default:
link.Value = "down"
link.Icon = "mdi:network-off"
Expand Down

0 comments on commit 813485e

Please sign in to comment.