Initial connections might be faster.

This commit is contained in:
irungentoo 2013-07-20 22:22:17 -04:00
parent 3793b0b7fa
commit 4f4e41f2eb

View File

@ -803,6 +803,10 @@ void adjustRates()
uint64_t temp_time = current_time(); uint64_t temp_time = current_time();
for(i = 0; i < MAX_CONNECTIONS; ++i) for(i = 0; i < MAX_CONNECTIONS; ++i)
{ {
if(connections[i].status == 1 || connections[i].status == 2)
{
connections[i].SYNC_rate = MAX_SYNC_RATE;
}
if(connections[i].status == 3) if(connections[i].status == 3)
{ {
if(sendqueue(i) != 0) if(sendqueue(i) != 0)