Ignore:
Timestamp:
01/15/19 16:47:20 (22 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
e9fe6ac
Parents:
edd0448
Message:

Fix clashes between global and local variable names in tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    r1800ee3 rbab946c  
    8080struct output_data_t *output = NULL;
    8181
    82 uint64_t count;
    83 uint64_t bytes;
     82uint64_t totalcount;
     83uint64_t totalbytes;
    8484
    8585struct libtrace_t *currenttrace;
     
    178178        }
    179179        while ((glob_last_ts >> 32) < (ts >> 32)) {
    180                 report_results(glob_last_ts >> 32, count, bytes, stats);
    181                 count = 0;
    182                 bytes = 0;
     180                report_results(glob_last_ts >> 32, totalcount, totalbytes,
     181                                stats);
     182                totalcount = 0;
     183                totalbytes = 0;
    183184                for (j = 0; j < filter_count; j++)
    184185                        filters[j].count = filters[j].bytes = 0;
    185186                glob_last_ts = ts;
    186187        }
    187         count += res->total.count;
     188        totalcount += res->total.count;
    188189        packets_seen += res->total.count;
    189         bytes += res->total.bytes;
     190        totalbytes += res->total.bytes;
    190191        for (j = 0; j < filter_count; j++) {
    191192                filters[j].count += res->filters[j].count;
     
    344345                stats = trace_get_statistics(trace, stats);
    345346        }
    346         report_results((glob_last_ts >> 32), count, bytes, stats);
     347        report_results((glob_last_ts >> 32), totalcount, totalbytes, stats);
    347348        if (trace_is_err(trace))
    348349                trace_perror(trace,"%s",uri);
Note: See TracChangeset for help on using the changeset viewer.