Changeset 95db152


Ignore:
Timestamp:
12/12/05 13:37:39 (15 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:
ec73798
Parents:
2e8aa42
Message:
  • Fixed bug with packet_interval vs packet_count
  • Updated to use floating point to allow for showing stats in intervals smaller than a second
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    r3840760 r95db152  
    6969
    7070uint64_t packet_count=UINT64_MAX;
    71 uint64_t packet_interval=UINT64_MAX;
     71double packet_interval=UINT32_MAX;
    7272
    7373
     
    188188                                break;
    189189                        case 'i':
    190                                 packet_interval=atoi(optarg);
     190                                packet_interval=atof(optarg);
    191191                                break;
    192192                        case 'c':
    193                                 packet_interval=atoi(optarg);
     193                                packet_count=atoi(optarg);
    194194                                break;
    195195                        case 'o':
     
    204204        }
    205205
    206         if (packet_count == UINT64_MAX && packet_interval == UINT64_MAX) {
     206        if (packet_count == UINT64_MAX && packet_interval == UINT32_MAX) {
    207207                packet_interval = 300; /* every 5 minutes */
    208208        }
Note: See TracChangeset for help on using the changeset viewer.