2019-03-03 04:08:54 +01:00
|
|
|
getNodeStats() Netscript Function
|
|
|
|
=================================
|
|
|
|
|
2019-03-31 04:53:57 +02:00
|
|
|
.. warning:: This page contains spoilers for the game
|
|
|
|
|
2019-03-03 04:08:54 +01:00
|
|
|
.. js:function:: getNodeStats(i)
|
|
|
|
|
2021-03-07 10:37:56 +01:00
|
|
|
:RAM cost: 0 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:param number i: Index of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
|
|
|
:returns: Object containing a variety of stats about the specified Hacknet Node
|
2021-03-07 10:37:56 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
::
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
name: Node's name ("hacknet-node-5"),
|
|
|
|
level: Node's level,
|
|
|
|
ram: Node's RAM,
|
|
|
|
cores: Node's number of cores,
|
2019-03-31 04:53:57 +02:00
|
|
|
cache: Cache level. Only applicable for Hacknet Servers
|
2019-07-05 09:26:22 +02:00
|
|
|
hashCapacity: Hash Capacity provided by this Node. Only applicable for Hacknet Servers
|
2019-03-31 04:53:57 +02:00
|
|
|
production: Node's production per second
|
2019-03-03 04:08:54 +01:00
|
|
|
timeOnline: Number of seconds since Node has been purchased,
|
2019-03-31 04:53:57 +02:00
|
|
|
totalProduction: Total amount that the Node has produced
|
2019-03-03 04:08:54 +01:00
|
|
|
}
|
2021-03-07 10:13:37 +01:00
|
|
|
|
2019-03-31 04:53:57 +02:00
|
|
|
.. note:: Note that for Hacknet Nodes, production refers to the amount of money the node generates.
|
2021-03-12 08:51:56 +01:00
|
|
|
For Hacknet Servers (the upgraded version of Hacknet Nodes), production refers to the amount
|
|
|
|
of hashes the node generates.
|