diff --git a/internal/poller/interface_homelan.go b/internal/poller/interface_homelan.go index 666fdc6..02e882b 100644 --- a/internal/poller/interface_homelan.go +++ b/internal/poller/interface_homelan.go @@ -87,7 +87,7 @@ func (im *InterfaceHomeLanMbits) Poll(ctx context.Context) error { Rx: stats.Status.BytesReceived, } - if itf.IsWAN() { + if !itf.IsWAN() { counters.Swap() } diff --git a/internal/poller/interface_netdev.go b/internal/poller/interface_netdev.go index 2dec0a5..306e91f 100644 --- a/internal/poller/interface_netdev.go +++ b/internal/poller/interface_netdev.go @@ -76,7 +76,7 @@ func (im *InterfaceNetDevMbits) Poll(ctx context.Context) error { Rx: stats.Status.RxBytes, } - if itf.IsWAN() { + if !itf.IsWAN() { counters.Swap() }