Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websites
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN organization
websites
Commits
fda57d7a
Commit
fda57d7a
authored
6 years ago
by
Jean-Baptiste Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Update mirrorbits section
parent
a2917d7b
No related branches found
Branches containing commit
Tags
3.0.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www.videolan.org/vlc/stats/downloads.php
+36
-35
36 additions, 35 deletions
www.videolan.org/vlc/stats/downloads.php
with
36 additions
and
35 deletions
www.videolan.org/vlc/stats/downloads.php
+
36
−
35
View file @
fda57d7a
...
...
@@ -446,40 +446,41 @@
{
echo
"<tr><td class=
\"
category
\"
style=
\"
text-align: left;
\"
><strong>
$key
</strong></td>
\n
"
;
// <Mirrorbits>
if
(
array_key_exists
(
$key
,
$table_mirrorbits
))
{
$platforms
=
array
(
"Windows"
,
"Macintosh"
,
"Source"
);
foreach
(
$platforms
as
$platform
)
{
if
(
array_key_exists
(
$platform
,
$table_mirrorbits
[
$key
]))
{
$value
=
0
;
if
(
is_array
(
$table_mirrorbits
[
$key
][
$platform
]))
{
foreach
(
$table_mirrorbits
[
$key
][
$platform
]
as
$url
)
{
$final
=
str_replace
(
"#version#"
,
$key
,
$url
);
$value
+=
mirrorbits_fetch
(
$final
);
}
}
else
{
$final
=
str_replace
(
"#version#"
,
$key
,
$table_mirrorbits
[
$key
][
$platform
]);
$value
+=
mirrorbits_fetch
(
$final
);
}
if
(
$platform
==
"Windows"
||
$platform
==
"Macintosh"
)
{
$t
[
$platform
]
+=
$value
;
}
// Historically "source" is computed from the total - windows - mac
$t
[
"Total"
]
+=
$value
;
}
}
}
// </Mirrorbits>
// <Mirrorbits>
if
(
array_key_exists
(
$key
,
$table_mirrorbits
))
{
$ftp_multiplier
=
1.021
;
// Estimation of downloads on our ftp/http directly, based on the stats of the last months (early 2019)
$platforms
=
array
(
"Windows"
,
"Macintosh"
,
"Source"
);
foreach
(
$platforms
as
$platform
)
{
if
(
array_key_exists
(
$platform
,
$table_mirrorbits
[
$key
]))
{
$value
=
0
;
if
(
is_array
(
$table_mirrorbits
[
$key
][
$platform
]))
{
foreach
(
$table_mirrorbits
[
$key
][
$platform
]
as
$url
)
{
$final
=
str_replace
(
"#version#"
,
$key
,
$url
);
$value
+=
mirrorbits_fetch
(
$final
)
*
$ftp_multiplier
;
}
}
else
{
$final
=
str_replace
(
"#version#"
,
$key
,
$table_mirrorbits
[
$key
][
$platform
]);
$value
+=
mirrorbits_fetch
(
$final
)
*
$ftp_multiplier
;
}
if
(
$platform
==
"Windows"
||
$platform
==
"Macintosh"
)
{
$t
[
$platform
]
+=
$value
;
}
// Historically "source" is computed from the total - windows - mac
$t
[
"Total"
]
+=
$value
;
}
}
}
// </Mirrorbits>
$wintotal
+=
$t
[
"Windows"
];
$mactotal
+=
$t
[
"Macintosh"
];
...
...
@@ -492,7 +493,7 @@
echo
"</tr>
\n
"
;
}
// Android Installs by users (downloads are higher)
// Android Installs by users (
actual
downloads are higher)
$android_old
=
77956940
;
$android_new
=
163917190
;
echo
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment