~ubuntu-branches/ubuntu/utopic/sysstat/utopic-proposed

« back to all changes in this revision

Viewing changes to pr_stats.c

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2013-09-21 22:27:45 UTC
  • mfrom: (22.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130921222745-8e9zv1n3tn3uc0wa
Tags: 10.1.7-1
* New upstream version.
* Remove no longer needed 11-fix-concurrency-build-issue.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
905
905
{
906
906
        int i, j;
907
907
        struct stats_net_dev *sndc, *sndp;
 
908
        double rxkb, txkb, ifutil;
908
909
 
909
910
        if (dis) {
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]);
912
913
        }
913
914
 
914
915
        for (i = 0; i < a->nr; i++) {
923
924
 
924
925
                printf("%-11s %9s", timestamp[curr], sndc->interface);
925
926
 
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);
 
929
                
 
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,
 
933
                       rxkb / 1024,
 
934
                       txkb / 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));
 
938
                
 
939
                ifutil = compute_ifutil(sndc, rxkb, txkb);
 
940
                printf("    %6.2f\n", ifutil);
934
941
        }
935
942
}
936
943