Changeset 11354


Ignore:
Timestamp:
Oct 24, 2010, 9:35:23 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3666 "byteCount stored on a 32bits integer" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r11333 r11354  
    7878
    7979static int
    80 compareTransfer( uint32_t a_uploaded, uint32_t a_downloaded,
    81                  uint32_t b_uploaded, uint32_t b_downloaded )
     80compareTransfer( uint64_t a_uploaded, uint64_t a_downloaded,
     81                 uint64_t b_uploaded, uint64_t b_downloaded )
    8282{
    8383    /* higher upload count goes first */
     
    173173    tr_host * host;
    174174    char * url;
    175     uint32_t up;
    176     uint32_t down;
     175    uint64_t up;
     176    uint64_t down;
    177177};
    178178
     
    387387    /* number of up/down/corrupt bytes since the last time we sent an
    388388     * "event=stopped" message that was acknowledged by the tracker */
    389     uint32_t byteCounts[3];
     389    uint64_t byteCounts[3];
    390390
    391391    tr_ptrArray trackers; /* tr_tracker_item */
     
    736736                              "&peer_id=%s"
    737737                              "&port=%d"
    738                               "&uploaded=%" PRIu32
    739                               "&downloaded=%" PRIu32
     738                              "&uploaded=%" PRIu64
     739                              "&downloaded=%" PRIu64
    740740                              "&left=%" PRIu64
    741741                              "&numwant=%d"
     
    758758
    759759    if( tier->byteCounts[TR_ANN_CORRUPT] )
    760         evbuffer_add_printf( buf, "&corrupt=%" PRIu32, tier->byteCounts[TR_ANN_CORRUPT] );
     760        evbuffer_add_printf( buf, "&corrupt=%" PRIu64, tier->byteCounts[TR_ANN_CORRUPT] );
    761761
    762762    str = eventName;
Note: See TracChangeset for help on using the changeset viewer.