mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +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:
parent
560d61c343
commit
64ab43cb8c
@ -35,6 +35,7 @@ slsReceiverFunctionList::slsReceiverFunctionList(detectorType det):
|
||||
startFrameIndex(0),
|
||||
frameIndex(0),
|
||||
totalFramesCaught(0),
|
||||
totalPacketsCaught(0),
|
||||
startAcquisitionIndex(0),
|
||||
acquisitionIndex(0),
|
||||
packetsInFile(0),
|
||||
@ -290,7 +291,7 @@ void slsReceiverFunctionList::resetTotalFramesCaught(){
|
||||
acqStarted = false;
|
||||
startAcquisitionIndex = 0;
|
||||
totalFramesCaught = 0;
|
||||
|
||||
totalPacketsCaught = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -769,6 +770,7 @@ int slsReceiverFunctionList::startWriting(){
|
||||
}
|
||||
|
||||
packetsInFile += i;
|
||||
totalPacketsCaught += i;
|
||||
//count only if you get full frames
|
||||
if(i == packetsPerFrame){
|
||||
framesCaught++;
|
||||
@ -856,9 +858,9 @@ int slsReceiverFunctionList::startWriting(){
|
||||
receiver_threads_running=0;
|
||||
pthread_mutex_unlock(&status_mutex);
|
||||
|
||||
cout << "RealTime Packets Caught:" << dec << packetsInFile << endl;
|
||||
cout << "RealTime Frames Caught:" << dec << framesCaught << endl;
|
||||
cout << "Total Frames Caught:"<< dec << totalFramesCaught << endl;
|
||||
cout << "Total RealTime Packets Caught:" << dec << totalPacketsCaught << endl;
|
||||
//cout << "RealTime Full Frames Caught:" << dec << framesCaught << endl;
|
||||
cout << "Total Full Frames Caught:"<< dec << totalFramesCaught << endl;
|
||||
|
||||
|
||||
if(sfilefd){
|
||||
|
@ -258,6 +258,9 @@ private:
|
||||
/** Total Frames Caught for an entire acquisition (including all scans) */
|
||||
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) */
|
||||
uint32_t startAcquisitionIndex;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user