Don't wait 20 seconds for the first sweep. For tiny nodes, that can be too long.

This commit is contained in:
JoelKatz
2013-01-31 00:02:15 -08:00
parent 8660356fd4
commit 687e3c2c11

View File

@@ -50,7 +50,7 @@ Application::Application() :
getRand(mNonce256.begin(), mNonce256.size());
getRand(reinterpret_cast<unsigned char *>(&mNonceST), sizeof(mNonceST));
mJobQueue.setThreadCount();
mSweepTimer.expires_from_now(boost::posix_time::seconds(20));
mSweepTimer.expires_from_now(boost::posix_time::seconds(10));
mSweepTimer.async_wait(boost::bind(&Application::sweep, this));
}