Advertisement
Guest User

Untitled

a guest
Dec 26th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. // If block is very close, allow full maximum
  2. if(d <= BLOCK_SEND_DISABLE_LIMITS_MAX_D)
  3. max_simul_dynamic = max_simul_sends_setting;
  4.  
  5. // Don't select too many blocks for sending
  6. if(num_blocks_selected >= max_simul_dynamic)
  7. {
  8. queue_is_full = true;
  9. goto queue_full_break;
  10. }
  11.  
  12. // Don't send blocks that are currently being transferred
  13. if(m_blocks_sending.find(p) != NULL)
  14. continue;
  15.  
  16. /*
  17. Do not go over-limit
  18. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement