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 0034b8d..a73406d 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 ("-");