Fix a bug in the 'dc' progress report

This commit is contained in:
Holger Vogt 2021-06-25 14:21:50 +02:00
parent 8eeb924460
commit c38b8e3615
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
#ifdef HAS_PROGREP #ifdef HAS_PROGREP
if (i == job->TRCVnestLevel) { if (i == job->TRCVnestLevel) {
actval += job->TRCVvStep[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 #endif