Changeset 0ef6536 for lib/format_wag.c


Ignore:
Timestamp:
12/06/05 16:46:32 (16 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:
2e8aa42
Parents:
2adf051
Message:

Fixed minor bit-shifting problem with get_erf_timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    r2adf051 r0ef6536  
    367367        struct wag_data_frame *wagptr = (struct wag_data_frame *)packet->header;
    368368        uint64_t timestamp = 0;
    369         timestamp = (wagptr->ts.secs << 32) + wagptr->ts.subsecs;
     369        timestamp = (((uint64_t)wagptr->ts.secs) << 32) + wagptr->ts.subsecs;
    370370        //timestamp |= (uint64_t)wagptr->ts.secs<<32;
    371371        //timestamp = ((timestamp%44000000)*(UINT_MAX/44000000))
Note: See TracChangeset for help on using the changeset viewer.