Changeset 491 for trunk/tools/tracertstats/tracertstats.c
- Timestamp:
- 11/03/05 14:25:46 (8 years ago)
- File:
-
- 1 edited
-
trunk/tools/tracertstats/tracertstats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/tracertstats/tracertstats.c
r407 r491 95 95 uint64_t bytes = 0; 96 96 double last_ts = 0; 97 double ts = 0; 97 98 98 99 output=output_init(uri,output_format?:"csv"); … … 117 118 break; 118 119 } 120 ts = trace_get_seconds(&packet); 119 121 120 122 for(i=0;i<filter_count;++i) { … … 129 131 130 132 if (packet_interval!=UINT64_MAX 131 &&(last_ts==0 || last_ts<t race_get_seconds(&packet))) {133 &&(last_ts==0 || last_ts<ts)) { 132 134 if (last_ts==0) 133 last_ts=t race_get_seconds(&packet);134 report_results(t race_get_seconds(&packet),count,bytes);135 last_ts=ts; 136 report_results(ts,count,bytes); 135 137 count=0; 136 138 bytes=0; … … 139 141 140 142 if (count > packet_count) { 141 report_results(t race_get_seconds(&packet),count,bytes);143 report_results(ts,count,bytes); 142 144 count=0; 143 145 bytes=0; 144 146 } 145 147 } 146 report_results(t race_get_seconds(&packet),count,bytes);148 report_results(ts,count,bytes); 147 149 148 150 trace_destroy(trace);
Note: See TracChangeset
for help on using the changeset viewer.
