mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-16 00:13:00 +00:00
Check often if logUpdate has occured
This commit is contained in:
parent
e957358786
commit
118a105aa4
@ -104,8 +104,10 @@ void logging(void *params_void){
|
|||||||
if (params->log_duration && (elapsedLog) >= params->log_duration * 1000000)
|
if (params->log_duration && (elapsedLog) >= params->log_duration * 1000000)
|
||||||
loggingOn = false;
|
loggingOn = false;
|
||||||
else
|
else
|
||||||
this_thread::sleep_for(chrono::milliseconds(params->log_interval));
|
if (logUpdate)
|
||||||
|
this_thread::sleep_for(chrono::milliseconds(params->log_interval));
|
||||||
|
else
|
||||||
|
this_thread::sleep_for(chrono::milliseconds(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
writeFile(params->output_file + get_log_suffix());
|
writeFile(params->output_file + get_log_suffix());
|
||||||
|
Loading…
Reference in New Issue
Block a user