logging: don't sleep if time is over

pull/119/head
André Almeida 4 years ago
parent 0303f8de28
commit 0a942512e9

@ -60,8 +60,8 @@ void *logging(void *params_void){
if ((elapsedLog) >= params->log_duration * 1000000 && params->log_duration)
loggingOn = false;
this_thread::sleep_for(chrono::milliseconds(log_period));
else
this_thread::sleep_for(chrono::milliseconds(log_period));
}
writeFile(params->output_file + date);

Loading…
Cancel
Save