Fixed a bug in memtest progress bar, that had no actual effects.
This closes issue #859, thanks to @erbenmo.
This commit is contained in:
parent
442235fe40
commit
93f61bb2a4
@ -79,10 +79,8 @@ void memtest_progress_end(void) {
|
|||||||
void memtest_progress_step(size_t curr, size_t size, char c) {
|
void memtest_progress_step(size_t curr, size_t size, char c) {
|
||||||
size_t chars = ((unsigned long long)curr*progress_full)/size, j;
|
size_t chars = ((unsigned long long)curr*progress_full)/size, j;
|
||||||
|
|
||||||
for (j = 0; j < chars-progress_printed; j++) {
|
for (j = 0; j < chars-progress_printed; j++) printf("%c",c);
|
||||||
printf("%c",c);
|
progress_printed = chars;
|
||||||
progress_printed++;
|
|
||||||
}
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user