Ignore:
Timestamp:
02/21/07 16:06:38 (15 years ago)
Author:
Josef Vodanovich <jjv4@…>
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:
f9b6f64
Parents:
d4336d5
Message:

removed unnecessary loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/port_report.c

    rd4336d5 r09be643  
    3939        int i;
    4040        printf("%-20s","Direction:");
    41         //printf("%20s", " ");
    4241        for(i=0;i<4;i++){
    4342                if(!suppress[i]){
     
    133132        endprotoent();
    134133        endservent();
    135        
    136         int total, j,k;
    137         for(i=0;i<4;i++){
    138                 total = 0;
    139                 for(j=0;j<256;j++)
    140                         for(k=0;k<65536;k++)
    141                                 total += ports[i][j][k].count;
    142                 //printf("%s: %i\n", "Total", total);
    143         }
    144134}
Note: See TracChangeset for help on using the changeset viewer.