Updated update script

This commit is contained in:
2022-03-09 19:24:05 +00:00
parent e67bef2f76
commit 72ea910c8d
2 changed files with 13 additions and 6 deletions

View File

@ -5,7 +5,7 @@
*/
export async function downloadPrint(ns, file) {
const speed = ~~(Math.random() * 100) / 10;
const spacing = Array(5 - Math.floor((file.length) / 8)).fill('\t').join('');
const spacing = Array(40 - file.length || 1).fill(' ').join('');
await slowPrint(ns, `${file}${spacing}[==================>] 100% \t (${speed} MB/s)`);
}