- commented out some debug statements and corrected stuck harvesting a bit

This commit is contained in:
Mark Vejvoda
2011-01-28 08:37:48 +00:00
parent 23135b5bab
commit 177531c376
5 changed files with 26 additions and 23 deletions

View File

@@ -221,8 +221,9 @@ void LogFileThread::addLogEntry(SystemFlags::DebugType type, string logEntry) {
bool LogFileThread::checkSaveCurrentLogBufferToDisk() {
bool ret = false;
if(difftime(time(NULL),lastSaveToDisk) >= 10 ||
LogFileThread::getLogEntryBufferCount() >= 2000000) {
if(difftime(time(NULL),lastSaveToDisk) >= 5 ||
//LogFileThread::getLogEntryBufferCount() >= 2000000) {
LogFileThread::getLogEntryBufferCount() >= 10000) {
lastSaveToDisk = time(NULL);
ret = true;
}
@@ -247,7 +248,7 @@ void LogFileThread::execute() {
saveToDisk(false,false);
}
if(this->getQuitStatus() == false) {
sleep(50);
sleep(25);
}
}