mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:03:26 +00:00
fix: download speed
This commit is contained in:
@@ -206,7 +206,7 @@ export const DownloadManagerProvider: React.FC<{ children: ReactNode }> = ({
|
||||
if (timeElapsed === 0) return;
|
||||
|
||||
const newBytes = downloadProgress.bytesDownloaded - lastBytesWritten;
|
||||
const speed = newBytes / timeElapsed / 1024;
|
||||
const speed = newBytes / timeElapsed / 1024 / 1024;
|
||||
const progress =
|
||||
downloadProgress.bytesDownloaded / downloadProgress.bytesTotal;
|
||||
|
||||
|
Reference in New Issue
Block a user