Changeset 80e834f


Ignore:
Timestamp:
09/17/15 13:49:02 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
ff12906
Parents:
9a0e118
Message:

Fix off-by-one error in tracertstats intervals.

Reverted to using trace_get_information to decide if we need a tick interval.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    r1101175 r80e834f  
    192192
    193193        key = trace_get_erf_timestamp(packet);
    194         if ((key >> 32) > (td->last_key >> 32) + packet_interval) {
     194        if ((key >> 32) >= (td->last_key >> 32) + packet_interval) {
    195195                libtrace_generic_t tmp = {.ptr = td->results};
    196196                trace_publish_result(trace, t, key,
     
    263263        trace_set_perpkt_threads(trace, threadcount);
    264264
    265         if (trace_is_parallel(trace)) {
     265        if (trace_get_information(trace)->live) {
    266266                trace_set_tick_interval(trace, (int) (packet_interval * 1000));
    267267        }
Note: See TracChangeset for help on using the changeset viewer.