From c92788e503c3eabd6b21c6c91e1abdea27238699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Sat, 9 Jun 2012 14:12:53 +0200 Subject: [PATCH] test: fix test runner progress bar Make % completed indicator actually show % completed instead of 0 %. --- test/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner.c b/test/runner.c index 1bda4806..214c9a0d 100644 --- a/test/runner.c +++ b/test/runner.c @@ -32,7 +32,7 @@ static void log_progress(int total, int passed, int failed, const char* name) { if (total == 0) total = 1; - LOGF("[%% %3d|+ %3d|- %3d]: %s", (passed + failed) / total * 100, + LOGF("[%% %3d|+ %3d|- %3d]: %s", (int) ((passed + failed) / ((double) total) * 100.0), passed, failed, name); }