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