fixed bug of wrong number of frames in receiver when server starts

This commit is contained in:
Dhanya Maliakal
2016-02-12 17:26:14 +01:00
parent a0c6aad7c6
commit db2e75460e

View File

@ -3943,7 +3943,7 @@ int64_t slsDetector::setTimer(timerIndex index, int64_t t){
std::cout << "Setting/Getting number of frames " << index <<" to/from receiver " << args[1] << std::endl; std::cout << "Setting/Getting number of frames " << index <<" to/from receiver " << args[1] << std::endl;
#endif #endif
args[0] = FRAME_NUMBER; args[0] = FRAME_NUMBER;
retval = thisDetector->timerValue[FRAME_NUMBER]*thisDetector->timerValue[CYCLES_NUMBER]; retval = abs(thisDetector->timerValue[FRAME_NUMBER]*thisDetector->timerValue[CYCLES_NUMBER]);
if(args[1] != -1) args[1]=retval; if(args[1] != -1) args[1]=retval;
}else{ }else{
#ifdef VERBOSE #ifdef VERBOSE