common: fix progress indicator when start > 0

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-08 15:09:45 +10:30
parent 3382f9ca96
commit 742fa4b6e5
1 changed files with 1 additions and 1 deletions

View File

@ -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;