Update update.js
This commit is contained in:
parent
846acbb54a
commit
05be7ac2a7
@ -95,7 +95,7 @@ export class ArgParser {
|
|||||||
*/
|
*/
|
||||||
export async function downloadPrint(ns, file) {
|
export async function downloadPrint(ns, file) {
|
||||||
const speed = ~~(Math.random() * 100) / 10;
|
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)`);
|
await slowPrint(ns, `${file}${spacing}[==================>] 100%\t(${speed} MB/s)`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user