openwisp-monitoring
openwisp-monitoring copied to clipboard
[bug] Code issue when writing traffic rx/tx
https://github.com/openwisp/openwisp-monitoring/blob/fb2814b6dd8213ddb45a8497cf41dfb10eee04a2/openwisp_monitoring/device/writer.py#L85
It should be:
if (
ifstats.get('rx_bytes') is not None
and ifstats.get('tx_bytes') is not None
):