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