mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 15:47:10 -04:00
Prevent a divide-by-0 error in ftrsd2.c.
This commit is contained in:
parent
56450e1806
commit
b3d15ea0c6
@ -38,7 +38,7 @@ void ftrsd2_(int mrsym[], int mrprob[], int mr2sym[], int mr2prob[],
|
|||||||
int nera_best=0;
|
int nera_best=0;
|
||||||
float pp,pp1,pp2;
|
float pp,pp1,pp2;
|
||||||
static unsigned int nseed;
|
static unsigned int nseed;
|
||||||
|
|
||||||
// Power-percentage symbol metrics - composite gnnf/hf
|
// Power-percentage symbol metrics - composite gnnf/hf
|
||||||
int perr[8][8] = {
|
int perr[8][8] = {
|
||||||
{ 4, 9, 11, 13, 14, 14, 15, 15},
|
{ 4, 9, 11, 13, 14, 14, 15, 15},
|
||||||
@ -203,7 +203,7 @@ NB: j is the symbol-vector index of the symbol with rank i.
|
|||||||
param[1]=nhard_min;
|
param[1]=nhard_min;
|
||||||
param[2]=nsoft_min;
|
param[2]=nsoft_min;
|
||||||
param[3]=nera_best;
|
param[3]=nera_best;
|
||||||
param[4]=1000.0*pp2/pp1;
|
param[4]= pp1 > 0 ? 1000.0*pp2/pp1 : 1000.0;
|
||||||
param[5]=ntotal_min;
|
param[5]=ntotal_min;
|
||||||
param[6]=ntry[0];
|
param[6]=ntry[0];
|
||||||
param[7]=1000.0*pp2;
|
param[7]=1000.0*pp2;
|
||||||
|
@ -203,7 +203,7 @@ NB: j is the symbol-vector index of the symbol with rank i.
|
|||||||
param[1]=nhard_min;
|
param[1]=nhard_min;
|
||||||
param[2]=nsoft_min;
|
param[2]=nsoft_min;
|
||||||
param[3]=nera_best;
|
param[3]=nera_best;
|
||||||
param[4]=1000.0*pp2/pp1;
|
param[4]= pp1 > 0 ? 1000.0*pp2/pp1 : 1000.0;
|
||||||
param[5]=ntotal_min;
|
param[5]=ntotal_min;
|
||||||
param[6]=ntry[0];
|
param[6]=ntry[0];
|
||||||
param[7]=1000.0*pp2;
|
param[7]=1000.0*pp2;
|
||||||
|
Loading…
Reference in New Issue
Block a user