summaryrefslogtreecommitdiffstats
path: root/loader2/mediacheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader2/mediacheck.c')
-rw-r--r--loader2/mediacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/mediacheck.c b/loader2/mediacheck.c
index 0c45b62a1..91e0e8bdc 100644
--- a/loader2/mediacheck.c
+++ b/loader2/mediacheck.c
@@ -43,8 +43,8 @@ static void readCB(void *co, long long pos, long long total) {
char tickmark[2] = "-";
char * ticks = "-\\|/";
- newtScaleSet(data->scale, pos / total);
- *tickmark = ticks[(pos / total) % 5];
+ newtScaleSet(data->scale, pos * 100.0 / total);
+ *tickmark = ticks[(total / (pos + 1)) % 5];
newtLabelSetText(data->label, tickmark);
newtRefresh();