summaryrefslogtreecommitdiffstats
path: root/loader2/mediacheck.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-02-07 17:58:37 -0500
committerJeremy Katz <katzj@redhat.com>2008-02-07 17:58:37 -0500
commit1c3df3b8a6e4d9adb5f5baa0b630696e9d69ab8a (patch)
tree89d7766a9dc6461f1ef4686a5e2009681129eebf /loader2/mediacheck.c
parentf5f6c227d6a3ee3bb3b283bce86117c4cba5ac7b (diff)
downloadanaconda-1c3df3b8a6e4d9adb5f5baa0b630696e9d69ab8a.tar.gz
anaconda-1c3df3b8a6e4d9adb5f5baa0b630696e9d69ab8a.tar.xz
anaconda-1c3df3b8a6e4d9adb5f5baa0b630696e9d69ab8a.zip
Fix the progress bar during mediacheck (#431138)
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();