907
907
struct stats_net_dev *sndc, *sndp;
908
double rxkb, txkb, ifutil;
910
911
printf("\n%-11s IFACE rxpck/s txpck/s rxkB/s txkB/s"
911
" rxcmp/s txcmp/s rxmcst/s\n", timestamp[!curr]);
912
" rxcmp/s txcmp/s rxmcst/s %%ifutil\n", timestamp[!curr]);
914
915
for (i = 0; i < a->nr; i++) {
924
925
printf("%-11s %9s", timestamp[curr], sndc->interface);
926
printf(" %9.2f %9.2f %9.2f %9.2f %9.2f %9.2f %9.2f\n",
927
rxkb = S_VALUE(sndp->rx_bytes, sndc->rx_bytes, itv);
928
txkb = S_VALUE(sndp->tx_bytes, sndc->tx_bytes, itv);
930
printf(" %9.2f %9.2f %9.2f %9.2f %9.2f %9.2f %9.2f",
927
931
S_VALUE(sndp->rx_packets, sndc->rx_packets, itv),
928
932
S_VALUE(sndp->tx_packets, sndc->tx_packets, itv),
929
S_VALUE(sndp->rx_bytes, sndc->rx_bytes, itv) / 1024,
930
S_VALUE(sndp->tx_bytes, sndc->tx_bytes, itv) / 1024,
931
935
S_VALUE(sndp->rx_compressed, sndc->rx_compressed, itv),
932
936
S_VALUE(sndp->tx_compressed, sndc->tx_compressed, itv),
933
937
S_VALUE(sndp->multicast, sndc->multicast, itv));
939
ifutil = compute_ifutil(sndc, rxkb, txkb);
940
printf(" %6.2f\n", ifutil);