Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: fix test runner progress bar
Browse files Browse the repository at this point in the history
Make % completed indicator actually show % completed instead of 0 %.
  • Loading branch information
mmalecki authored and bnoordhuis committed Jun 9, 2012
1 parent 6a47e3a commit c92788e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runner.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit c92788e

Please sign in to comment.