Commit 9279f0b4bef75abf7182ae2f354baace60577a7f

Authored by Josh Klontz
1 parent d3898799

this should go through qDebug

Showing 1 changed file with 2 additions and 4 deletions
openbr/openbr_plugin.cpp
... ... @@ -863,10 +863,8 @@ void br::Context::printStatus()
863 863 {
864 864 if (verbose || quiet || (totalSteps < 2)) return;
865 865 const float p = progress();
866   - if (p < 1) {
867   - int s = timeRemaining();
868   - 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);
869   - }
  866 + if (p < 1)
  867 + 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);
870 868 }
871 869  
872 870 float br::Context::progress() const
... ...