Changeset 7 for trunk/libtransmission/upload.c
- Timestamp:
- Jan 12, 2006, 6:40:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/upload.c
r1 r7 102 102 now = tr_date(); 103 103 104 /* Check the last fourtimes we sent something and decide if104 /* Check the last FOO times we sent something and decide if 105 105 we must wait */ 106 106 for( i = 0; i < FOO; i++ ) 107 107 { 108 108 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 ) 111 111 { 112 112 ret = 1;
Note: See TracChangeset
for help on using the changeset viewer.