mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
client bug fix: framesl, cyclesl printed in float, fixed
This commit is contained in:
parent
d2e4adf483
commit
40c3c78024
@ -690,14 +690,14 @@ slsDetectorCommand::slsDetectorCommand(multiSlsDetector *det) {
|
||||
++i;
|
||||
|
||||
/*! \page config
|
||||
- <b>framesl</b> gets number of frames left. Used in GOTTHARD and Jungfrau only. Only get! \c Returns \c (double with 9 decimal digits)
|
||||
- <b>framesl</b> gets number of frames left. Used in GOTTHARD and Jungfrau only. Only get! \c Returns \c (long long int)
|
||||
*/
|
||||
descrToFuncMap[i].m_pFuncName = "framesl";
|
||||
descrToFuncMap[i].m_pFuncPtr = &slsDetectorCommand::cmdTimeLeft;
|
||||
++i;
|
||||
|
||||
/*! \page timing
|
||||
- <b>cyclesl</b> gets number of cylces left. Used in GOTTHARD and Jungfrau only. Only get! \c Returns \c (double with 9 decimal digits)
|
||||
- <b>cyclesl</b> gets number of cylces left. Used in GOTTHARD and Jungfrau only. Only get! \c Returns \c (long long int)
|
||||
*/
|
||||
descrToFuncMap[i].m_pFuncName = "cyclesl";
|
||||
descrToFuncMap[i].m_pFuncPtr = &slsDetectorCommand::cmdTimeLeft;
|
||||
@ -718,7 +718,7 @@ slsDetectorCommand::slsDetectorCommand(multiSlsDetector *det) {
|
||||
++i;
|
||||
|
||||
/*! \page timing
|
||||
- <b>nframes</b> Frames from start run control. Only Jungfrau. Only get!
|
||||
- <b>nframes</b> Frames from start run control. Only Jungfrau. Only get! \c Returns \c (long long int)
|
||||
*/
|
||||
descrToFuncMap[i].m_pFuncName = "nframes";
|
||||
descrToFuncMap[i].m_pFuncPtr = &slsDetectorCommand::cmdTimeLeft;
|
||||
@ -4642,12 +4642,13 @@ std::string slsDetectorCommand::cmdTimeLeft(int narg, const char * const args[],
|
||||
ret = myDet->getTimeLeft(index, detPos);
|
||||
|
||||
if ((ret != -1) && (index == ACQUISITION_TIME || index == FRAME_PERIOD || index == DELAY_AFTER_TRIGGER || index == ACTUAL_TIME || index == MEASUREMENT_TIME ||
|
||||
index == MEASURED_PERIOD || index == MEASURED_SUBPERIOD))
|
||||
index == MEASURED_PERIOD || index == 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 std::string(answer);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user