spaces in percentage printout for python

This commit is contained in:
maliakal_d 2020-08-19 12:56:22 +02:00
parent 39c2ab4743
commit 096b0c424d

View File

@ -1095,8 +1095,9 @@ int DetectorImpl::acquire() {
}
void DetectorImpl::printProgress(double progress) {
std::cout << std::fixed << std::setprecision(2) << std::setw(6) << progress
<< " \%";
// spaces for python printout
std::cout << " " << std::fixed << std::setprecision(2) << std::setw(6)
<< progress << " \%";
std::cout << '\r' << std::flush;
}