mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-13 22:03:53 +01:00
frame index updated for receiver
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@319 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
1 parent
5d50fa8e00
commit
1f69778a6f
1 file changed
+5
-2
@@ -506,9 +506,12 @@ double slsDetectorUtils::getCurrentProgress() {
|
||||
|
||||
|
||||
|
||||
void slsDetectorUtils::incrementProgress() {
|
||||
void slsDetectorUtils::incrementProgress(int i) {
|
||||
pthread_mutex_lock(&mp);
|
||||
progressIndex++;
|
||||
if(i==-1)
|
||||
progressIndex++;
|
||||
else
|
||||
progressIndex+=i;
|
||||
cout << fixed << setprecision(2) << setw (6) << 100.*((double)progressIndex)/((double)totalProgress) << " \%";
|
||||
pthread_mutex_unlock(&mp);
|
||||
#ifdef VERBOSE
|
||||
|
||||
Reference in new issue
Block a user