test: fix test runner progress bar
Make % completed indicator actually show % completed instead of 0 %.
This commit is contained in:
parent
6a47e3ac7c
commit
c92788e503
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user