Changeset 7042


Ignore:
Timestamp:
Nov 4, 2008, 9:33:24 PM (12 years ago)
Author:
charles
Message:

(libT) #1417: revert r7039

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r7039 r7042  
    3131#include "peer-io.h"
    3232#include "ratecontrol.h"
    33 #include "stats.h"  /* tr_statsAddUploaded(), tr_statsAddDownloaded() */
    3433#include "trevent.h"
    3534#include "utils.h"
     
    183182        b->bytesUsed += n;
    184183        tr_rcTransferred( io->speedometer[TR_UP], n );
    185         tr_statsAddUploaded( io->session, n );
    186184        dbgmsg( io,
    187185                "wrote %zu bytes to peer... upload bytesLeft is now %zu",
     
    216214        b->bytesUsed += n;
    217215        tr_rcTransferred( io->speedometer[TR_DOWN], n );
    218         tr_statsAddDownloaded( io->session, n );
    219216        dbgmsg( io,
    220217                "%zu new input bytes. bytesUsed is %zu, bytesLeft is %zu",
  • trunk/libtransmission/peer-mgr.c

    r7039 r7042  
    3232#include "peer-msgs.h"
    3333#include "ptrarray.h"
     34#include "stats.h" /* tr_statsAddUploaded, tr_statsAddDownloaded */
    3435#include "torrent.h"
    3536#include "trevent.h"
     
    10081009            tor->activityDate = now;
    10091010            tor->uploadedCur += e->length;
     1011            tr_statsAddUploaded( tor->session, e->length );
    10101012            if( peer )
    10111013            {
     
    10291031            if( peer )
    10301032                tor->downloadedCur += e->length;
     1033            tr_statsAddDownloaded( tor->session, e->length );
    10311034            if( peer ) {
    10321035                struct peer_atom * a = getExistingAtom( t, &peer->in_addr );
Note: See TracChangeset for help on using the changeset viewer.