Formatting

This commit is contained in:
Zakary Timson 2022-04-28 08:09:26 -04:00
parent 54f45ced62
commit e55da6d4d1
2 changed files with 2 additions and 2 deletions

View File

@ -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('');
}

View File

@ -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