From 14ed1d976a816250774ff1672df5658544e223dc Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 9 Jan 2024 16:38:30 +0300 Subject: [PATCH] template.c: clarify the order of operations --- src/template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template.c b/src/template.c index 008ee19..63eeeae 100644 --- a/src/template.c +++ b/src/template.c @@ -151,7 +151,7 @@ main(void) "%sremaining samples = %18" PRIuMAX " (%.2Lf%% done)", ANSI_CLEAR, PRODUCT - w - 1, - (long double) w * 100 / (long double) PRODUCT); + ((long double) w * 100) / (long double) PRODUCT); fflush(stdout); } #endif