mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-24 08:32:10 +00:00
Update src/routes/Player/useStatistics.js
Co-authored-by: Timothy Z. <timothy@stremio.com>
This commit is contained in:
parent
b74e6e94c4
commit
dc59cd707f
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ const useStatistics = (player, streamingServer) => {
|
|||
const minDownload = Math.min(8 * MB, Math.max(2 * MB, statistics.streamLen * 0.008));
|
||||
const downloadedScore = Math.min(1, statistics.downloaded / minDownload) * 70;
|
||||
|
||||
const speedCore = Math.min(1, statistics.downloadSpeed / (1 * MB)) * 10;
|
||||
const speedScore = Math.min(1, statistics.downloadSpeed / (1 * MB)) * 10;
|
||||
|
||||
return Math.min(99, peerScore + downloadedScore + speedCore);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue