summaryrefslogtreecommitdiff
path: root/lib/ftrsd/ftrsd2.c
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-09-09 22:49:00 +0200
committerChristoph Berg <myon@debian.org>2021-09-09 22:49:00 +0200
commit85895feeaf88bcde26bbfc71e8f6b2047c0f5f41 (patch)
tree79807e00771e4af4ce279e368262f2222806102f /lib/ftrsd/ftrsd2.c
parent2f095a04ed69d9aa14b47dc4acde6b3225b2d65e (diff)
New upstream version 2.5.0~rc6+repackupstream/2.5.0_rc6+repack
Diffstat (limited to 'lib/ftrsd/ftrsd2.c')
-rw-r--r--lib/ftrsd/ftrsd2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftrsd/ftrsd2.c b/lib/ftrsd/ftrsd2.c
index 6da9b417..7d8dd366 100644
--- a/lib/ftrsd/ftrsd2.c
+++ b/lib/ftrsd/ftrsd2.c
@@ -38,7 +38,7 @@ void ftrsd2_(int mrsym[], int mrprob[], int mr2sym[], int mr2prob[],
int nera_best=0;
float pp,pp1,pp2;
static unsigned int nseed;
-
+
// Power-percentage symbol metrics - composite gnnf/hf
int perr[8][8] = {
{ 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[2]=nsoft_min;
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[6]=ntry[0];
param[7]=1000.0*pp2;