reverse counters swap logic

This commit is contained in:
Tomy Guichard 2023-04-05 19:23:43 +02:00
parent acd5e5ebfe
commit 2da35e8772
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ func (im *InterfaceHomeLanMbits) Poll(ctx context.Context) error {
Rx: stats.Status.BytesReceived,
}
if itf.IsWAN() {
if !itf.IsWAN() {
counters.Swap()
}

View file

@ -76,7 +76,7 @@ func (im *InterfaceNetDevMbits) Poll(ctx context.Context) error {
Rx: stats.Status.RxBytes,
}
if itf.IsWAN() {
if !itf.IsWAN() {
counters.Swap()
}