mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-06 12:50:02 +02:00
packetloss for moench was weird,fixed
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@587 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
65fe046fef
commit
392129675c
@ -414,6 +414,7 @@ int slsReceiverFunctionList::startWriting(){
|
|||||||
char *wbuf;
|
char *wbuf;
|
||||||
int sleepnumber=0;
|
int sleepnumber=0;
|
||||||
int frameFactor=0;
|
int frameFactor=0;
|
||||||
|
int packetloss=0;
|
||||||
|
|
||||||
framesInFile=0;
|
framesInFile=0;
|
||||||
framesCaught=0;
|
framesCaught=0;
|
||||||
@ -465,15 +466,24 @@ int slsReceiverFunctionList::startWriting(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//printing packet losses and file names
|
//printing packet losses and file names
|
||||||
if(prevframenum == 0)
|
//if(prevframenum != 0)
|
||||||
|
if(!framesCaught)
|
||||||
cout << savefilename << endl;
|
cout << savefilename << endl;
|
||||||
else{
|
else{
|
||||||
cout << savefilename << "\tpacket loss " << fixed << setprecision(4) << ((currframenum-prevframenum-(packetsPerFrame*framesInFile))/(double)(packetsPerFrame*framesInFile))*100.000 << "%\t\t"
|
if(!frameIndexOffset)
|
||||||
"framenum " << currframenum << endl;
|
packetloss = ((currframenum-prevframenum-(packetsPerFrame*framesInFile))/(double)(packetsPerFrame*framesInFile))*100.000;
|
||||||
|
else
|
||||||
|
packetloss = ((currframenum-prevframenum-(framesInFile))/(double)(framesInFile))*100.000;
|
||||||
|
cout << savefilename
|
||||||
|
<< "\tpacket loss " << fixed << setprecision(4) << packetloss
|
||||||
|
<< "%\t\t framenum "
|
||||||
|
<< currframenum //<< "\t\t p " << prevframenum
|
||||||
|
<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(prevframenum != 0){
|
//if(prevframenum != 0){
|
||||||
|
if(!framesCaught){
|
||||||
prevframenum=currframenum;
|
prevframenum=currframenum;
|
||||||
framesInFile = 0;
|
framesInFile = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user