Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

Stop showing a stale 100% next to the live assemble percentage

prashantgeek1737f6c22c78
diff --git a/src/renderer/src/screens/DownloadingScreen.tsx b/src/renderer/src/screens/DownloadingScreen.tsx
index 1f1fcd7..2ac9a76 100644
--- a/src/renderer/src/screens/DownloadingScreen.tsx
+++ b/src/renderer/src/screens/DownloadingScreen.tsx
@@ -421,13 +421,17 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
}}
>
<span>
- {formatBytes(download.bytesDownloaded)}
+ {formatBytes(
+ isAssembling ? (download.assembledBytes ?? 0) : download.bytesDownloaded
+ )}
{knownSize ? ` of ${formatBytes(download.totalBytes)}` : ''}
</span>
{knownSize && (
<>
<span style={{ opacity: 0.35 }}>·</span>
- <span style={{ color: 'var(--text)', fontWeight: 600 }}>{percent}%</span>
+ <span style={{ color: 'var(--text)', fontWeight: 600 }}>
+ {isAssembling ? assemblePercent : percent}%
+ </span>
</>
)}
{!isPaused && !isAssembling && knownSize && effectiveSpeed > 0 && (