]> git.sesse.net Git - vlc/commitdiff
update: display percentage of received update correctly
authorFelix Paul Kühne <fkuehne@videolan.org>
Wed, 30 Sep 2009 17:47:30 +0000 (19:47 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 30 Sep 2009 17:49:28 +0000 (19:49 +0200)
src/misc/update.c

index 914eaa58488db05f0fd17d029ea06a32beee435e..fc1930947751e098f4273274926b2cf22a878773 100644 (file)
@@ -611,9 +611,9 @@ static void* update_DownloadReal( vlc_object_t *p_this )
         psz_downloaded = size_str( l_downloaded );
         f_progress = (float)l_downloaded/(float)l_size;
 
-        if( asprintf( &psz_status, _( "%s\nDownloading... %s/%s %.1f%% done" ),
+        if( asprintf( &psz_status, _( "%s\nDownloading... %s/%s %.1f%% done" ),
                       p_update->release.psz_url, psz_downloaded, psz_size,
-                      f_progress ) != -1 )
+                      f_progress*100 ) != -1 )
         {
             dialog_ProgressSet( p_progress, psz_status, f_progress );
             free( psz_status );