mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
added ramUsed to getNodeStats
This commit is contained in:
parent
c0d28c17e7
commit
7059bdf08a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -77,6 +77,7 @@ export function NetscriptHacknet(player: IPlayer, workerScript: WorkerScript, he
|
||||
name: node instanceof HacknetServer ? node.hostname : node.name,
|
||||
level: node.level,
|
||||
ram: node instanceof HacknetServer ? node.maxRam : node.ram,
|
||||
ramUsed: node instanceof HacknetServer ? node.ramUsed : undefined,
|
||||
cores: node.cores,
|
||||
production: node instanceof HacknetServer ? node.hashRate : node.moneyGainRatePerSecond,
|
||||
timeOnline: node.onlineTimeSeconds,
|
||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -470,6 +470,8 @@ export interface NodeStats {
|
||||
level: number;
|
||||
/** Node's RAM */
|
||||
ram: number;
|
||||
/** Node's used RAM */
|
||||
ramUsed: number;
|
||||
/** Node's number of cores */
|
||||
cores: number;
|
||||
/** Cache level. Only applicable for Hacknet Servers */
|
||||
|
Loading…
Reference in New Issue
Block a user