mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
- some logging changes for helping test world synch better
This commit is contained in:
@@ -235,8 +235,8 @@ void LogFileThread::addLogEntry(SystemFlags::DebugType type, string logEntry) {
|
||||
bool LogFileThread::checkSaveCurrentLogBufferToDisk() {
|
||||
bool ret = false;
|
||||
if(difftime(time(NULL),lastSaveToDisk) >= 5 ||
|
||||
//LogFileThread::getLogEntryBufferCount() >= 2000000) {
|
||||
LogFileThread::getLogEntryBufferCount() >= 10000) {
|
||||
LogFileThread::getLogEntryBufferCount() >= 1000000) {
|
||||
//LogFileThread::getLogEntryBufferCount() >= 10000) {
|
||||
lastSaveToDisk = time(NULL);
|
||||
ret = true;
|
||||
}
|
||||
@@ -258,7 +258,8 @@ void LogFileThread::execute() {
|
||||
|
||||
try {
|
||||
for(;this->getQuitStatus() == false;) {
|
||||
if(checkSaveCurrentLogBufferToDisk() == true) {
|
||||
while(this->getQuitStatus() == false &&
|
||||
checkSaveCurrentLogBufferToDisk() == true) {
|
||||
saveToDisk(false,false);
|
||||
}
|
||||
if(this->getQuitStatus() == false) {
|
||||
|
Reference in New Issue
Block a user