openwisp/openwisp-monitoring

[bug] Code issue when writing traffic rx/tx

Closed this issue · 0 comments

and ifstats.get('rx_bytes') is not None

It should be:

          if (
                ifstats.get('rx_bytes') is not None
                and ifstats.get('tx_bytes') is not None
            ):