dctran.c: better rounding for status report

This commit is contained in:
h_vogt 2013-03-23 17:25:41 +01:00 committed by rlar
parent 30a44d1be5
commit bfb2eeebbe
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ resume:
if (ckt->CKTtime == 0.)
SetAnalyse( "tran init", 0);
else
SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime));
SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime) + 0.5);
#endif
ckt->CKTdelta =
MIN(ckt->CKTdelta,ckt->CKTmaxStep);