Ignore:
Timestamp:
02/21/07 16:06:38 (14 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/tos_report.c

    rd4336d5 r09be643  
    1212{
    1313        struct libtrace_ip *ip = trace_get_ip(packet);
    14        
    1514        if (!ip)
    1615                return;
     
    2726        int i;
    2827        printf("%-20s","Direction:");
    29         //printf("%20s", " ");
    3028        for(i=0;i<4;i++){
    3129                if(!suppress[i]){
     
    7775                printf("\n");
    7876        }
    79        
    80         int total;
    81         for(i=0;i<4;i++){
    82                 total = 0;
    83                 for(j=0;j<256;j++)
    84                         total += tos_stat[i][j].count;
    85                 //printf("%s: %i\n", "Total", total);
    86         }
    8777}
Note: See TracChangeset for help on using the changeset viewer.