client bug fix: framesl, cyclesl printed in float, fixed

This commit is contained in:
2019-07-10 11:13:35 +02:00
parent 8c76d5d52c
commit 3e2b471ee1
2 changed files with 32 additions and 64 deletions

View File

@ -5820,18 +5820,14 @@ string slsDetectorCommand::cmdTimeLeft(int narg, char *args[], int action) {
if ((ret!=-1) && (index==ACQUISITION_TIME || index==FRAME_PERIOD || index==DELAY_AFTER_TRIGGER
|| index==ACTUAL_TIME || index==MEASUREMENT_TIME ||
MEASURED_PERIOD || MEASURED_SUBPERIOD))
MEASURED_PERIOD || MEASURED_SUBPERIOD)) {
rval=(double)ret*1E-9;
else rval=ret;
sprintf(answer,"%0.9f",rval);
} else {
sprintf(answer,"%lld",(long long int)ret);
}
sprintf(answer,"%0.9f",rval);
return string(answer);
}