mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
included total packets to display
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@682 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -35,6 +35,7 @@ slsReceiverFunctionList::slsReceiverFunctionList(detectorType det):
|
|||||||
startFrameIndex(0),
|
startFrameIndex(0),
|
||||||
frameIndex(0),
|
frameIndex(0),
|
||||||
totalFramesCaught(0),
|
totalFramesCaught(0),
|
||||||
|
totalPacketsCaught(0),
|
||||||
startAcquisitionIndex(0),
|
startAcquisitionIndex(0),
|
||||||
acquisitionIndex(0),
|
acquisitionIndex(0),
|
||||||
packetsInFile(0),
|
packetsInFile(0),
|
||||||
@ -290,7 +291,7 @@ void slsReceiverFunctionList::resetTotalFramesCaught(){
|
|||||||
acqStarted = false;
|
acqStarted = false;
|
||||||
startAcquisitionIndex = 0;
|
startAcquisitionIndex = 0;
|
||||||
totalFramesCaught = 0;
|
totalFramesCaught = 0;
|
||||||
|
totalPacketsCaught = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -769,6 +770,7 @@ int slsReceiverFunctionList::startWriting(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
packetsInFile += i;
|
packetsInFile += i;
|
||||||
|
totalPacketsCaught += i;
|
||||||
//count only if you get full frames
|
//count only if you get full frames
|
||||||
if(i == packetsPerFrame){
|
if(i == packetsPerFrame){
|
||||||
framesCaught++;
|
framesCaught++;
|
||||||
@ -856,9 +858,9 @@ int slsReceiverFunctionList::startWriting(){
|
|||||||
receiver_threads_running=0;
|
receiver_threads_running=0;
|
||||||
pthread_mutex_unlock(&status_mutex);
|
pthread_mutex_unlock(&status_mutex);
|
||||||
|
|
||||||
cout << "RealTime Packets Caught:" << dec << packetsInFile << endl;
|
cout << "Total RealTime Packets Caught:" << dec << totalPacketsCaught << endl;
|
||||||
cout << "RealTime Frames Caught:" << dec << framesCaught << endl;
|
//cout << "RealTime Full Frames Caught:" << dec << framesCaught << endl;
|
||||||
cout << "Total Frames Caught:"<< dec << totalFramesCaught << endl;
|
cout << "Total Full Frames Caught:"<< dec << totalFramesCaught << endl;
|
||||||
|
|
||||||
|
|
||||||
if(sfilefd){
|
if(sfilefd){
|
||||||
|
@ -258,6 +258,9 @@ private:
|
|||||||
/** Total Frames Caught for an entire acquisition (including all scans) */
|
/** Total Frames Caught for an entire acquisition (including all scans) */
|
||||||
int totalFramesCaught;
|
int totalFramesCaught;
|
||||||
|
|
||||||
|
/** Total packets caught for an entire acquisition (including all scans) */
|
||||||
|
int totalPacketsCaught;
|
||||||
|
|
||||||
/** Frame index at start of an entire acquisition (including all scans) */
|
/** Frame index at start of an entire acquisition (including all scans) */
|
||||||
uint32_t startAcquisitionIndex;
|
uint32_t startAcquisitionIndex;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user