Changeset 10821


Ignore:
Timestamp:
Jun 22, 2010, 8:39:19 PM (12 years ago)
Author:
charles
Message:

(trunk libT) minor procedural tweak to tr_peerMgrPeerStats() inspired by #3334

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r10820 r10821  
    23122312    tr_peer_stat * ret;
    23132313    uint64_t now;
     2314    static const int CANCEL_HISTORY_MSEC = CANCEL_HISTORY_SEC * 1000;
    23142315
    23152316    assert( t->manager );
     
    23462347        stat->isSeed              = ( atom->uploadOnly == UPLOAD_ONLY_YES ) || ( peer->progress >= 1.0 );
    23472348
    2348         stat->blocksToPeer        = tr_historyGet( peer->blocksSentToPeer,    now, CANCEL_HISTORY_SEC*1000 );
    2349         stat->blocksToClient      = tr_historyGet( peer->blocksSentToClient,  now, CANCEL_HISTORY_SEC*1000 );
    2350         stat->cancelsToPeer       = tr_historyGet( peer->cancelsSentToPeer,   now, CANCEL_HISTORY_SEC*1000 );
    2351         stat->cancelsToClient     = tr_historyGet( peer->cancelsSentToClient, now, CANCEL_HISTORY_SEC*1000 );
     2349        stat->blocksToPeer        = tr_historyGet( peer->blocksSentToPeer,    now, CANCEL_HISTORY_MSEC );
     2350        stat->blocksToClient      = tr_historyGet( peer->blocksSentToClient,  now, CANCEL_HISTORY_MSEC );
     2351        stat->cancelsToPeer       = tr_historyGet( peer->cancelsSentToPeer,   now, CANCEL_HISTORY_MSEC );
     2352        stat->cancelsToClient     = tr_historyGet( peer->cancelsSentToClient, now, CANCEL_HISTORY_MSEC );
    23522353
    23532354        stat->pendingReqsToPeer   = peer->pendingReqsToPeer;
Note: See TracChangeset for help on using the changeset viewer.