Changeset 2d4e055


Ignore:
Timestamp:
01/05/17 13:39:55 (4 years ago)
Author:
GitHub <noreply@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
d31b952
Parents:
4edb310 (diff), ceba2b2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Shane Alcock <salcock@…> (01/05/17 13:39:55)
git-committer:
GitHub <noreply@…> (01/05/17 13:39:55)
Message:

Merge pull request #43 from EaseTheWorld?/patch-2

Avoid using double in store_first_packet()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r47c4490 rceba2b2  
    10121012                        /* Check if we are newer than the previous 'first' packet */
    10131013                        size_t first = libtrace->first_packets.first;
    1014                         if (trace_get_seconds(dup) <
    1015                                 trace_get_seconds(libtrace->first_packets.packets[first].packet))
     1014                        struct timeval cur_ts = trace_get_timeval(dup);
     1015                        struct timeval first_ts = trace_get_timeval(libtrace->first_packets.packets[first].packet);
     1016                        if (timercmp(&cur_ts, &first_ts, <))
    10161017                                libtrace->first_packets.first = t->perpkt_num;
    10171018                }
Note: See TracChangeset for help on using the changeset viewer.