Ignore:
Timestamp:
12/24/06 17:05:29 (14 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:
870e501
Parents:
778d459
Message:

Cleanup a gazillion warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    r2a1a502 r4bd8a5b  
    3232#include <sys/types.h>
    3333#include <fcntl.h> /* for O_LARGEFILE */
     34#include <math.h>
    3435#include "libtrace.h"
    3536#include "libtrace_int.h"
     
    112113
    113114        ts=trace_get_seconds(trace->event.packet);
    114         if (trace->event.tdelta!=0.0) {
     115        if (fabs(trace->event.tdelta)<1e-9) {
    115116                /* Get the adjusted current time */
    116117                gettimeofday(&stv, NULL);
Note: See TracChangeset for help on using the changeset viewer.