Changeset d025ff7
- Timestamp:
- 07/27/10 17:06:31 (11 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:
- f724640
- Parents:
- 8608a0fa
- Location:
- examples/tutorial
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tutorial/headerdemo.c
r8835f5a rd025ff7 66 66 */ 67 67 68 while ( ts.tv_sec > next_report) {68 while ((uint32_t)ts.tv_sec > next_report) { 69 69 /* Print all our stats */ 70 70 print_stats(); -
examples/tutorial/lengthdemo.c
r8835f5a rd025ff7 42 42 * with periods in which no packets are observed. 43 43 */ 44 while ( ts.tv_sec > next_report) {44 while ((uint32_t)ts.tv_sec > next_report) { 45 45 46 46 /* Print the timestamp for the report */ -
examples/tutorial/readdemo.c
r8835f5a rd025ff7 6 6 #include <inttypes.h> 7 7 #include <err.h> 8 #include <assert.h> 8 9 9 10 uint64_t count = 0; … … 12 13 static void per_packet(libtrace_packet_t *packet) 13 14 { 15 assert(packet); 14 16 /* This function turns out to be really simple, because we are just 15 17 * counting the number of packets in the trace */ -
examples/tutorial/timedemo.c
r8835f5a rd025ff7 38 38 * with periods in which no packets are observed. 39 39 */ 40 while ( ts.tv_sec > next_report) {40 while ((uint32_t)ts.tv_sec > next_report) { 41 41 /* Print a timestamp for the report and the packet count */ 42 42 printf("%u \t%" PRIu64 "\n", next_report, count);
Note: See TracChangeset
for help on using the changeset viewer.