common: fix progress indicator when start > 0
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
3382f9ca96
commit
742fa4b6e5
|
|
@ -25,7 +25,7 @@ GetThreadWork_Locked__(void)
|
||||||
percent = 50 * dispatch / workcount;
|
percent = 50 * dispatch / workcount;
|
||||||
while (oldpercent < percent) {
|
while (oldpercent < percent) {
|
||||||
oldpercent++;
|
oldpercent++;
|
||||||
logprint("%c", (percent % 5) ? '.' : '0' + (percent / 5));
|
logprint("%c", (oldpercent % 5) ? '.' : '0' + (oldpercent / 5));
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = dispatch;
|
ret = dispatch;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue