From a709eb3f4ceea572d4b163611f9a1a0d915df78a Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Thu, 28 Mar 2024 00:06:05 +0100 Subject: [PATCH] fix: download speed --- apps/expo/src/hooks/DownloadManagerContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/expo/src/hooks/DownloadManagerContext.tsx b/apps/expo/src/hooks/DownloadManagerContext.tsx index 473a064..d298172 100644 --- a/apps/expo/src/hooks/DownloadManagerContext.tsx +++ b/apps/expo/src/hooks/DownloadManagerContext.tsx @@ -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;