mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 21:04:00 +02:00
- commented out some debug statements and corrected stuck harvesting a bit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user