Formatting
This commit is contained in:
parent
54f45ced62
commit
e55da6d4d1
@ -62,7 +62,7 @@ export function main(ns) {
|
||||
bestTarget(ns, servers).map(s => [...s, ns.hasRootAccess(s[0])])
|
||||
.filter(s => (!args['rooted'] || s[2]) || (!args['notRooted'] || !s[2]))
|
||||
.filter((s, i) => i < args['count'])
|
||||
.map(s => `${s[0]}${args['verbose'] ? ` (${toCurrency(s[1])})` : ''}`)
|
||||
.map(s => `${s[0]}${args['verbose'] ? ` (~${toCurrency(s[1])}/min)` : ''}`)
|
||||
.forEach((s, i) => ns.tprint(`${i + 1}) ${s}`));
|
||||
ns.tprint('');
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ export async function main(ns) {
|
||||
// Logger
|
||||
const logger = new Logger(ns, [
|
||||
() => `Mining: ${args['server']}`,
|
||||
() => `Security: ${Math.round(security)}/${minSecurity}\tBalance: \$${Math.round(balance * 100) / 100}`
|
||||
() => `Security: ${Math.round(security)}/${minSecurity}\tBalance: \$${toCurrency(balance)}`
|
||||
]);
|
||||
|
||||
// Main loop
|
||||
|
Loading…
Reference in New Issue
Block a user