From 52a04c2bbf16368a2afa1814eb35ce0862626ab0 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Fri, 13 Jun 2014 14:55:28 -0400 Subject: [PATCH] Flush stderr after printing progress --- openbr/openbr_plugin.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 4081615..8434447 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -866,6 +866,7 @@ void br::Context::printStatus() if (p < 1) { int s = timeRemaining(); fprintf(stderr,"%05.2f%% ELAPSED=%s REMAINING=%s COUNT=%g \r", p*100, QtUtils::toTime(Globals->startTime.elapsed()/1000.0f).toStdString().c_str(), QtUtils::toTime(s).toStdString().c_str(), Globals->currentStep); + fflush(stderr); } } -- libgit2 0.21.4