diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-07 17:58:37 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-07 17:58:37 -0500 |
commit | 1c3df3b8a6e4d9adb5f5baa0b630696e9d69ab8a (patch) | |
tree | 89d7766a9dc6461f1ef4686a5e2009681129eebf /loader2/mediacheck.c | |
parent | f5f6c227d6a3ee3bb3b283bce86117c4cba5ac7b (diff) | |
download | anaconda-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.c | 4 |
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(); |