Lines Matching defs:byteCount
308 unsigned int byteCount )
317 byteCount = MIN( byteCount, b->band[dir].bytesLeft );
321 if( byteCount > 0 )
334 if( r > 1.0 ) byteCount = 0;
335 else if( r > 0.9 ) byteCount *= 0.8;
336 else if( r > 0.8 ) byteCount *= 0.9;
340 if( b->parent && b->band[dir].honorParentLimits && ( byteCount > 0 ) )
341 byteCount = bandwidthClamp( b->parent, now, dir, byteCount );
344 return byteCount;
349 unsigned int byteCount )
351 return bandwidthClamp( b, 0, dir, byteCount );
376 size_t byteCount,
388 band->bytesLeft -= MIN( band->bytesLeft, byteCount );
393 b, byteCount, (isPieceData?"piece":"raw"), oldBytesLeft, band->bytesLeft );
396 bytesUsed( now, &band->raw, byteCount );
399 bytesUsed( now, &band->piece, byteCount );
402 tr_bandwidthUsed( b->parent, dir, byteCount, isPieceData, now );