Changeset 2e223eca for lib/trace.c


Ignore:
Timestamp:
02/24/06 14:31:30 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
0d768c8
Parents:
c6a6c3a
Message:

Documentation, and cleanup use of 64bit constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r0ea3526 r2e223eca  
    386386
    387387
    388         libtrace->fifo = create_tracefifo(1048576);
    389         assert( libtrace->fifo);
    390388        free(scan);
    391389        libtrace->started=false;
     
    511509        libtrace->format->fin_output(libtrace);
    512510        free(libtrace->uridata);
    513         destroy_tracefifo(libtrace->fifo);
    514511        free(libtrace);
    515512}
     
    10741071#error "What on earth are you running this on?"
    10751072#endif
    1076                 ts = (1000000 * (ts & 0xffffffffULL));
    1077                 ts += (ts & 0x80000000ULL) << 1;
    1078                 tv.tv_usec = ts >> 32;
     1073                tv.tv_usec = ((ts&0xFFFFFFFF)*1000000)>>32;
    10791074                if (tv.tv_usec >= 1000000) {
    10801075                        tv.tv_usec -= 1000000;
Note: See TracChangeset for help on using the changeset viewer.