From c38b8e361503856f80d8f0ad62f38215378a3e50 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 25 Jun 2021 14:21:50 +0200 Subject: [PATCH] Fix a bug in the 'dc' progress report --- src/spicelib/analysis/dctrcurv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/analysis/dctrcurv.c b/src/spicelib/analysis/dctrcurv.c index e8e4e592d..996e907c7 100644 --- a/src/spicelib/analysis/dctrcurv.c +++ b/src/spicelib/analysis/dctrcurv.c @@ -478,7 +478,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) #ifdef HAS_PROGREP if (i == job->TRCVnestLevel) { actval += job->TRCVvStep[job->TRCVnestLevel]; - SetAnalyse("dc", abs((int)(actval * 1000. / actdiff))); + SetAnalyse("dc", abs((int)((actval - job->TRCVvStart[job->TRCVnestLevel]) * 1000. / actdiff))); } #endif