Searched refs:bytesToSpend (Results 1 - 1 of 1) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/
H A DUploadBandwidthThrottler.cpp287 sint32 bytesToSpend = 0; local
312 if (bytesToSpend < 1) {
315 sleepTime = std::max((-bytesToSpend + 1) * 1000 / allowedDataRate + 2, // add 2 ms to allow for rounding inaccuracies
344 bytesToSpend += (sint32) (allowedDataRate / 1000.0 * timeSinceLastLoop);
346 if (bytesToSpend >= 1) {
369 while (spentBytes < bytesToSpend && (!m_ControlQueueFirst_list.empty() || !m_ControlQueue_list.empty())) {
381 SocketSentBytes socketSentBytes = socket->SendControlData(bytesToSpend-spentBytes, minFragSize);
413 for (uint32 slotCounter = 0; (slotCounter < slots * 2) && spentBytes < bytesToSpend; slotCounter++) {
419 : (bytesToSpend - spentBytes); // pass 2
436 bytesToSpend
[all...]

Completed in 46 milliseconds