From b44ba45254b1e1be1115f5a13d0a25d4deb3c1dd Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 13 Jun 2014 14:43:59 -0400 Subject: [PATCH] Revert "this should go through qDebug" --- openbr/openbr_plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 1fb032a..4081615 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -863,8 +863,10 @@ void br::Context::printStatus() { if (verbose || quiet || (totalSteps < 2)) return; const float p = progress(); - 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); + 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); + } } float br::Context::progress() const -- libgit2 0.21.4