mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
Also fflush in printer::print_str() if configured to do so
This commit is contained in:
@@ -211,6 +211,11 @@ void printer::print_str(const char* str)
|
||||
std::unique_lock<std::mutex> lck(print_mutex);
|
||||
fputs(str, stdout);
|
||||
|
||||
if (b_flush_stdout)
|
||||
{
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
if(logfile != nullptr)
|
||||
{
|
||||
fputs(str, logfile);
|
||||
|
||||
Reference in New Issue
Block a user