From bfb2eeebbe60b2ddfe72e05c81bf475b0c94b4fa Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 23 Mar 2013 17:25:41 +0100 Subject: [PATCH] dctran.c: better rounding for status report --- src/spicelib/analysis/dctran.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/analysis/dctran.c b/src/spicelib/analysis/dctran.c index 1ac307f4a..708af9130 100644 --- a/src/spicelib/analysis/dctran.c +++ b/src/spicelib/analysis/dctran.c @@ -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);