Commit b44ba45254b1e1be1115f5a13d0a25d4deb3c1dd
1 parent
64557402
Revert "this should go through qDebug"
This reverts commit 9279f0b4bef75abf7182ae2f354baace60577a7f.
Showing
1 changed file
with
4 additions
and
2 deletions
openbr/openbr_plugin.cpp
| @@ -863,8 +863,10 @@ void br::Context::printStatus() | @@ -863,8 +863,10 @@ void br::Context::printStatus() | ||
| 863 | { | 863 | { |
| 864 | if (verbose || quiet || (totalSteps < 2)) return; | 864 | if (verbose || quiet || (totalSteps < 2)) return; |
| 865 | const float p = progress(); | 865 | const float p = progress(); |
| 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); | 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 | + } | ||
| 868 | } | 870 | } |
| 869 | 871 | ||
| 870 | float br::Context::progress() const | 872 | float br::Context::progress() const |