From 9279f0b4bef75abf7182ae2f354baace60577a7f Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 13 Jun 2014 14:18:24 -0400 Subject: [PATCH] this should go through qDebug --- openbr/openbr_plugin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 4081615..1fb032a 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -863,10 +863,8 @@ void br::Context::printStatus() { if (verbose || quiet || (totalSteps < 2)) return; const float p = progress(); - 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); - } + if (p < 1) + qDebug("%05.2f%% ELAPSED=%s REMAINING=%s COUNT=%g \r", p*100, qPrintable(QtUtils::toTime(Globals->startTime.elapsed()/1000.0f)), qPrintable(QtUtils::toTime(timeRemaining())), Globals->currentStep); } float br::Context::progress() const -- libgit2 0.21.4