Changeset 0675ea1 for examples


Ignore:
Timestamp:
10/21/05 12:15:37 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
b4cb91f
Parents:
ef90843
Message:

Fixed termination condition
Changed makefile to allow overriding of the PREFIX that libtrace was
installed into

Location:
examples/rate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/rate/Makefile

    r20482800 r0675ea1  
    11
    2 PREFIX=/usr/local
     2PREFIX?=/usr/local
    33CC=gcc
    44
  • examples/rate/rate.c

    r2cc187b r0675ea1  
    110110
    111111        for (;;) {
    112                 if ((psize = trace_read_packet(trace,&packet)) == -1) {
     112                if ((psize = trace_read_packet(trace,&packet)) < 1) {
    113113                        // terminate
    114114                        break;
Note: See TracChangeset for help on using the changeset viewer.