Changeset 5c88a60 for examples


Ignore:
Timestamp:
10/07/05 16:21:34 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
9c6aa95
Parents:
dfc2673
Message:

added replacement function for pcap_dump_flush

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/rate/rate-dir.c

    re81d1af r5c88a60  
    9393        if (hdrcount >= 10) {
    9494                printf("\tOUT\t\t\tIN\t\t\tOTHER\n");
    95                 printf("Bps\tpps\t\tBps\tpps\t\tBps\tpps\n");
     95                printf("bps\tpps\t\tbps\tpps\t\tbps\tpps\n");
    9696                hdrcount = 0;
    9797        }
     
    104104        for (i = 0; i < 2; i++) {
    105105                printf("%d\t%d\t\t",
    106                                 counter[i][BYTES][SMOOTHED],
     106                                counter[i][BYTES][SMOOTHED]*8,
    107107                                counter[i][PACKETS][SMOOTHED]);
    108108                counter[i][BYTES][INSTANT] = 0;
     
    110110        }
    111111        printf("%d\t%d\t\t",
    112                         counter[2][BYTES][INSTANT],
     112                        counter[2][BYTES][INSTANT]*8,
    113113                        counter[2][PACKETS][INSTANT]);
    114114        counter[2][BYTES][INSTANT] = 0;
Note: See TracChangeset for help on using the changeset viewer.