From 05be7ac2a7015db5db2abdf15283468581cb7058 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Fri, 11 Mar 2022 16:36:41 +0000 Subject: [PATCH] Update update.js --- scripts/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update.js b/scripts/update.js index 28527c5..6aaa424 100644 --- a/scripts/update.js +++ b/scripts/update.js @@ -95,8 +95,8 @@ export class ArgParser { */ export async function downloadPrint(ns, file) { const speed = ~~(Math.random() * 100) / 10; - const spacing = Array(5 - Math.floor((file.length) / 8)).fill('\t').join(''); - await slowPrint(ns, `${file}${spacing}[==================>] 100% \t (${speed} MB/s)`); + const spacing = Array((40 - file.length) || 1).fill(' ').join(''); + await slowPrint(ns, `${file}${spacing}[==================>] 100%\t(${speed} MB/s)`); } /**