mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 23:37:14 +02:00
spaces in percentage printout for python
This commit is contained in:
@ -1095,8 +1095,9 @@ int DetectorImpl::acquire() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DetectorImpl::printProgress(double progress) {
|
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;
|
std::cout << '\r' << std::flush;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user