Ignore:
Timestamp:
Nov 4, 2008, 5:37:51 PM (14 years ago)
Author:
charles
Message:

(libT) #1417: overhead should be counted in the global stats

File:
1 edited

Legend:

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

    r6991 r7039  
    3131#include "peer-io.h"
    3232#include "ratecontrol.h"
     33#include "stats.h"  /* tr_statsAddUploaded(), tr_statsAddDownloaded() */
    3334#include "trevent.h"
    3435#include "utils.h"
     
    182183        b->bytesUsed += n;
    183184        tr_rcTransferred( io->speedometer[TR_UP], n );
     185        tr_statsAddUploaded( io->session, n );
    184186        dbgmsg( io,
    185187                "wrote %zu bytes to peer... upload bytesLeft is now %zu",
     
    214216        b->bytesUsed += n;
    215217        tr_rcTransferred( io->speedometer[TR_DOWN], n );
     218        tr_statsAddDownloaded( io->session, n );
    216219        dbgmsg( io,
    217220                "%zu new input bytes. bytesUsed is %zu, bytesLeft is %zu",
Note: See TracChangeset for help on using the changeset viewer.