Changeset 9332105 for lib/format_tsh.c


Ignore:
Timestamp:
03/27/07 00:14:13 (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:
1b9272f
Parents:
e01a738
Message:

Correct problem with tsh timestamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_tsh.c

    re01a738 r9332105  
    162162{
    163163        struct timeval tv;
    164         tv.tv_sec=((tsh_pkt_header_t*)(packet->header))->seconds;
    165         tv.tv_usec=((tsh_pkt_header_t*)(packet->header))->usecs;
     164        tv.tv_sec=ntohl(((tsh_pkt_header_t*)(packet->header))->seconds);
     165        tv.tv_usec=ntohl(((tsh_pkt_header_t*)(packet->header))->usecs);
    166166
    167167        return tv;
Note: See TracChangeset for help on using the changeset viewer.