Skip to content

Commit

Permalink
Changed download speed to be in mb/s vs Mb/s for extra clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Apr 18, 2023
1 parent e0db032 commit 8da3642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Downloader.ts
Expand Up @@ -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: "",
Expand Down Expand Up @@ -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"
)}`,
});
Expand Down

0 comments on commit 8da3642

Please sign in to comment.