def rx_tx_bits(interface):  # by reading /proc
    rx_bytes, tx_bytes = rx_tx_bytes(interface)
    rx_bits = rx_bytes * 8
    tx_bits = tx_bytes * 8
    return (rx_bits, tx_bits)
dataset/ETHPy150Open cgoldberg/linux-metrics/linux_metrics/net_stat.py/rx_tx_bits/original