opkg: fix progress bar
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:18:16 +0000 (04:18 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:18:16 +0000 (04:18 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@9 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

opkg_download.c

index 0034b8d008e1eb5c09746011ae6b54092e9ad058..a73406d2d5c61a9dcabe5db8830c60b6976d8fb7 100644 (file)
@@ -41,7 +41,7 @@ curl_progress_func (void* data,
     printf ("\r%3d%% |", p);
     for (i = 1; i < 73; i++)
     {
-       if (i <= p)
+       if (i <= p * 0.73)
            printf ("=");
        else
            printf ("-");