From 8da364215ac4ec4bffe4de4fb89dc525a2c6ec73 Mon Sep 17 00:00:00 2001 From: Inrixia Date: Tue, 18 Apr 2023 17:11:35 +1200 Subject: [PATCH] Changed download speed to be in mb/s vs Mb/s for extra clarity --- src/Downloader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Downloader.ts b/src/Downloader.ts index 968c5ca..de8164c 100644 --- a/src/Downloader.ts +++ b/src/Downloader.ts @@ -98,7 +98,7 @@ export default class Downloader { const totalVideos = this.taskQueue.length + this.videosProcessed + this.videosProcessing; const processed = `Processed: ${ye(this.videosProcessed)}/${ye(totalVideos)}`; const downloaded = `Total Downloaded: ${cy(downloadedMB.toFixed(2))}/${cy(totalMB.toFixed(2) + "MB")}`; - const speed = `Download Speed: ${gr(((downloadSpeed / 1024000) * 8).toFixed(2) + "Mb/s")}`; + const speed = `Download Speed: ${gr(((downloadSpeed / 1024000) * 8).toFixed(2) + "mb/s")}`; this.mpb?.setFooter({ message: `${processed} ${downloaded} ${speed}`, pattern: "", @@ -225,7 +225,7 @@ export default class Downloader { this.log(formattedTitle, { percentage: percentage.reduce((sum, b) => sum + b, 0) / percentage.length, - message: `${reset}${cy(downloadedMB.toFixed(2))}/${cy(totalMB.toFixed(2) + "MB")} ${gr(((downloadSpeed / 1024000) * 8).toFixed(2) + "Mb/s")} ETA: ${bl( + message: `${reset}${cy(downloadedMB.toFixed(2))}/${cy(totalMB.toFixed(2) + "MB")} ${gr(((downloadSpeed / 1024000) * 8).toFixed(2) + "mb/s")} ETA: ${bl( Math.floor(downloadETA / 60) + "m " + (Math.floor(downloadETA) % 60) + "s" )}`, });