Update src/routes/Player/useStatistics.js

Co-authored-by: Timothy Z. <timothy@stremio.com>
This commit is contained in:
Tim 2026-05-18 14:17:38 +02:00 committed by GitHub
parent b74e6e94c4
commit dc59cd707f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
});