mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02: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:
parent
5d50fa8e00
commit
1f69778a6f
@ -506,9 +506,12 @@ double slsDetectorUtils::getCurrentProgress() {
|
||||
|
||||
|
||||
|
||||
void slsDetectorUtils::incrementProgress() {
|
||||
void slsDetectorUtils::incrementProgress(int i) {
|
||||
pthread_mutex_lock(&mp);
|
||||
if(i==-1)
|
||||
progressIndex++;
|
||||
else
|
||||
progressIndex+=i;
|
||||
cout << fixed << setprecision(2) << setw (6) << 100.*((double)progressIndex)/((double)totalProgress) << " \%";
|
||||
pthread_mutex_unlock(&mp);
|
||||
#ifdef VERBOSE
|
||||
|
Loading…
x
Reference in New Issue
Block a user