[vlc-devel] commit: update: display percentage of received update correctly ( Felix Paul Kühne )

git version control git at videolan.org
Wed Sep 30 19:49:34 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Sep 30 19:47:30 2009 +0200| [6cc2e234ad5679c18e0b09de5677005d5084f55d] | committer: Felix Paul Kühne 

update: display percentage of received update correctly

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6cc2e234ad5679c18e0b09de5677005d5084f55d
---

 src/misc/update.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 914eaa5..fc19309 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -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 );




More information about the vlc-devel mailing list