Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
stats: stats are now refreshed every day and are accurate
· c6bfe206
Ludovic Fauvet
authored
Feb 14, 2016
c6bfe206
stats: auto-reconnect the websocket
· 038c5903
Ludovic Fauvet
authored
Feb 14, 2016
038c5903
Hide whitespace changes
Inline
Side-by-side
www.videolan.org/vlc/stats/downloads.php
View file @
038c5903
...
...
@@ -6,11 +6,20 @@
?>
<script>
var
ws
;
function
openWSCounterSocket
()
{
if
(
ws
===
undefined
||
ws
.
readyState
===
undefined
||
ws
.
readyState
>
1
)
{
ws
=
new
WebSocket
(
"
wss://get.videolan.org/wscounter
"
);
ws
.
onmessage
=
function
(
event
)
{
$
(
'
#wscounter
'
).
text
(
event
.
data
);
};
}
}
$
(
function
()
{
var
ws
=
new
WebSocket
(
"
wss://get.videolan.org/wscounter
"
);
ws
.
onmessage
=
function
(
event
)
{
$
(
'
#wscounter
'
).
text
(
event
.
data
);
};
openWSCounterSocket
();
setInterval
(
openWSCounterSocket
,
5000
);
});
</script>
...
...
@@ -18,9 +27,9 @@
<h1>
VLC download statistics
</h1>
<p>
These stats were started at the end of February 2005 and are likely
to be inaccurate.
</p>
to be inaccurate
before this date
.
</p>
<p>
Stats are updated every
few day
s.
</p>
<p>
Stats are updated every
day from our download server
s.
</p>
<p>
We don't show Linux download statistics as most downloads for this
OS are made through distributions.
</p>
...
...