reverse counters swap logic
This commit is contained in:
parent
acd5e5ebfe
commit
2da35e8772
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ func (im *InterfaceHomeLanMbits) Poll(ctx context.Context) error {
|
|||
Rx: stats.Status.BytesReceived,
|
||||
}
|
||||
|
||||
if itf.IsWAN() {
|
||||
if !itf.IsWAN() {
|
||||
counters.Swap()
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ func (im *InterfaceNetDevMbits) Poll(ctx context.Context) error {
|
|||
Rx: stats.Status.RxBytes,
|
||||
}
|
||||
|
||||
if itf.IsWAN() {
|
||||
if !itf.IsWAN() {
|
||||
counters.Swap()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue