Ignore:
Timestamp:
Jan 12, 2006, 6:40:47 PM (16 years ago)
Author:
root
Message:

Update 2005-11-24

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upload.c

    r1 r7  
    102102        now  = tr_date();
    103103
    104         /* Check the last four times we sent something and decide if
     104        /* Check the last FOO times we sent something and decide if
    105105           we must wait */
    106106        for( i = 0; i < FOO; i++ )
    107107        {
    108108            size += u->sizes[i];
    109             if( (uint64_t) size < 1024ULL *
    110                     u->limit * ( now - u->dates[i] ) / 1000 )
     109            if( (uint64_t) size * 1000 <
     110                    ( now - u->dates[i] ) * u->limit * 1024 )
    111111            {
    112112                ret = 1;
Note: See TracChangeset for help on using the changeset viewer.