- Timestamp:
- 04/27/07 23:05:06 (14 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:
- 0f42351
- Parents:
- cbce651
- Location:
- examples/rate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/rate/rate-dir.c
rd5a27e8 rffe2541 80 80 } 81 81 82 void secondreport() {82 static void secondreport() { 83 83 int i; 84 84 static int hdrcount = 10; -
examples/rate/rate.c
rd5a27e8 rffe2541 69 69 70 70 71 void secondreport() {71 static void secondreport() { 72 72 73 73 static int hdrcount = 10; … … 139 139 ts = trace_get_seconds(packet); 140 140 if(last_second == 0) { 141 last_second = (int)ts;142 } else if (last_second < (int)ts) {143 last_second = (int)ts;141 last_second = ts; 142 } else if (last_second < ts) { 143 last_second = ts; 144 144 docalc++; 145 145 }
Note: See TracChangeset
for help on using the changeset viewer.