Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6cc2e234
Commit
6cc2e234
authored
Sep 30, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: display percentage of received update correctly
parent
d8eccf08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/misc/update.c
src/misc/update.c
+2
-2
No files found.
src/misc/update.c
View file @
6cc2e234
...
@@ -611,9 +611,9 @@ static void* update_DownloadReal( vlc_object_t *p_this )
...
@@ -611,9 +611,9 @@ static void* update_DownloadReal( vlc_object_t *p_this )
psz_downloaded
=
size_str
(
l_downloaded
);
psz_downloaded
=
size_str
(
l_downloaded
);
f_progress
=
(
float
)
l_downloaded
/
(
float
)
l_size
;
f_progress
=
(
float
)
l_downloaded
/
(
float
)
l_size
;
if
(
asprintf
(
&
psz_status
,
_
(
"%s
\n
Downloading... %s/%s %.1f%% done"
),
if
(
asprintf
(
&
psz_status
,
_
(
"%s
\n
Downloading... %s/%s
-
%.1f%% done"
),
p_update
->
release
.
psz_url
,
psz_downloaded
,
psz_size
,
p_update
->
release
.
psz_url
,
psz_downloaded
,
psz_size
,
f_progress
)
!=
-
1
)
f_progress
*
100
)
!=
-
1
)
{
{
dialog_ProgressSet
(
p_progress
,
psz_status
,
f_progress
);
dialog_ProgressSet
(
p_progress
,
psz_status
,
f_progress
);
free
(
psz_status
);
free
(
psz_status
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment