commit 3d25ac2b80392558e6ea248e82b1de4a8a18e5d5
parent 9aa64962ce3e34d295626b2a527493a0cbe5fa82
Auteur: Selve <selve@asteride.xyz>
Date: Wed, 13 Mar 2024 12:44:07 -0400
correction d'un mauvais raisonnement
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sm2.c b/sm2.c
@@ -24,7 +24,7 @@ sm2(struct fiche *f, unsigned int qual, unsigned int pins, unsigned int pipi, un
if (f->nsucc <= 1)
intrv = pipi;
- else if (f->nsucc == pins + 1)
+ else if (f->nsucc == pins)
intrv = pnpi;
else
intrv = (f->prch - f->dern) * (f->fac / 100.0 + FMIN) + 1;