Update scripts/update.js, scripts/lib/utils.js
This commit is contained in:
		@@ -5,8 +5,8 @@
 | 
			
		||||
 */
 | 
			
		||||
export async function downloadPrint(ns, file) {
 | 
			
		||||
	const speed = ~~(Math.random() * 100) / 10;
 | 
			
		||||
	const spacing = Array(40 - file.length || 1).fill(' ').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)`);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user