Changeset 874


Ignore:
Timestamp:
06/19/06 17:56:36 (7 years ago)
Author:
perry
Message:

Output the interval time stamp rather than the actual.
Output all intervals even when there is no traffic.
Output an empty starting interval

Author: Tom Young <tyo@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/tracertstats/tracertstats.c

    r838 r874  
    145145                 
    146146                ts = trace_get_seconds(packet); 
     147                while (packet_interval!=UINT64_MAX 
     148                  &&(last_ts==0 || last_ts<ts)) { 
     149                        if (last_ts==0) 
     150                                last_ts=ts; 
     151                        report_results(last_ts,count,bytes); 
     152                        count=0; 
     153                        bytes=0; 
     154                        last_ts+=packet_interval; 
     155                } 
    147156                for(i=0;i<filter_count;++i) { 
    148157                        if(trace_apply_filter(filters[i].filter,packet)) { 
     
    155164                bytes+=trace_get_wire_length(packet); 
    156165 
    157                 if (packet_interval!=UINT64_MAX 
    158                   &&(last_ts==0 || last_ts<ts)) { 
    159                         if (last_ts==0) 
    160                                 last_ts=ts; 
    161                         report_results(ts,count,bytes); 
    162                         count=0; 
    163                         bytes=0; 
    164                         last_ts+=packet_interval; 
    165                 } 
    166166 
    167167                if (count >= packet_count) { 
Note: See TracChangeset for help on using the changeset viewer.