Ignore:
Timestamp:
Nov 18, 2007, 1:00:49 AM (15 years ago)
Author:
charles
Message:

reintroduce the "SWIFT" algorithm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ratecontrol.c

    r3845 r3864  
    3030#include "utils.h"
    3131
    32 #define GRANULARITY_MSEC 100
     32#define GRANULARITY_MSEC 250
    3333#define SHORT_INTERVAL_MSEC 3000
    3434#define LONG_INTERVAL_MSEC 6000
     
    109109        max = r->limit;
    110110        kb = max>cur ? max-cur : 0;
    111         bytes = (size_t)(kb * 1024u);
     111        bytes = (size_t)(kb * 1024);
    112112
    113113        tr_lockUnlock( (tr_lock*)r->lock );
Note: See TracChangeset for help on using the changeset viewer.