mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +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,
|
name: node instanceof HacknetServer ? node.hostname : node.name,
|
||||||
level: node.level,
|
level: node.level,
|
||||||
ram: node instanceof HacknetServer ? node.maxRam : node.ram,
|
ram: node instanceof HacknetServer ? node.maxRam : node.ram,
|
||||||
|
ramUsed: node instanceof HacknetServer ? node.ramUsed : undefined,
|
||||||
cores: node.cores,
|
cores: node.cores,
|
||||||
production: node instanceof HacknetServer ? node.hashRate : node.moneyGainRatePerSecond,
|
production: node instanceof HacknetServer ? node.hashRate : node.moneyGainRatePerSecond,
|
||||||
timeOnline: node.onlineTimeSeconds,
|
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;
|
level: number;
|
||||||
/** Node's RAM */
|
/** Node's RAM */
|
||||||
ram: number;
|
ram: number;
|
||||||
|
/** Node's used RAM */
|
||||||
|
ramUsed: number;
|
||||||
/** Node's number of cores */
|
/** Node's number of cores */
|
||||||
cores: number;
|
cores: number;
|
||||||
/** Cache level. Only applicable for Hacknet Servers */
|
/** Cache level. Only applicable for Hacknet Servers */
|
||||||
|
Loading…
Reference in New Issue
Block a user