Changeset 542


Ignore:
Timestamp:
12/12/05 13:37:39 (7 years ago)
Author:
perry
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
  • trunk/tools/tracertstats/tracertstats.c

    r527 r542  
    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.