From 096b0c424daf3407164e0b2f4c975a8f3bc8a9b5 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 19 Aug 2020 12:56:22 +0200 Subject: [PATCH] spaces in percentage printout for python --- slsDetectorSoftware/src/DetectorImpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/src/DetectorImpl.cpp b/slsDetectorSoftware/src/DetectorImpl.cpp index b3e163d32..a080b8d27 100644 --- a/slsDetectorSoftware/src/DetectorImpl.cpp +++ b/slsDetectorSoftware/src/DetectorImpl.cpp @@ -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; }