Changeset cf0ff82
- Timestamp:
- 11/03/05 14:25:46 (15 years ago)
- 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:
- 4ad8fa4
- Parents:
- dc0162b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracertstats/tracertstats.c
r65cdb7f rcf0ff82 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.