Ignore:
Timestamp:
Nov 8, 2008, 2:49:04 AM (14 years ago)
Author:
charles
Message:

more fucking around with the speed measurements.

File:
1 edited

Legend:

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

    r7055 r7069  
    3030#include "net.h"
    3131#include "peer-io.h"
     32#include "ratecontrol.h"
    3233#include "trevent.h"
    3334#include "utils.h"
     
    204205        b->bytesLeft -= MIN( b->bytesLeft, (size_t)n );
    205206        b->bytesUsed += n;
     207        tr_rcTransferred( io->session->rawSpeed[TR_UP], n );
    206208        dbgmsg( io,
    207209                "wrote %zu bytes to peer... upload bytesLeft is now %zu",
     
    236238        b->bytesLeft -= MIN( b->bytesLeft, (size_t)n );
    237239        b->bytesUsed += n;
     240        tr_rcTransferred( io->session->rawSpeed[TR_DOWN], n );
    238241        dbgmsg( io,
    239242                "%zu new input bytes. bytesUsed is %zu, bytesLeft is %zu",
Note: See TracChangeset for help on using the changeset viewer.