mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 15:42:28 +01:00
17 lines
747 B
ReStructuredText
17 lines
747 B
ReStructuredText
getWeakenTime() Netscript Function
|
|
==================================
|
|
|
|
.. js:function:: getWeakenTime(hostname/ip[, hackLvl=current level])
|
|
|
|
:param string hostname/ip: Hostname or IP of target server
|
|
:param number hackLvl: Optional hacking level for the calculation. Defaults to player's current hacking level
|
|
:RAM cost: 0.05 GB
|
|
|
|
Returns the amount of time in seconds it takes to execute the *weaken()* Netscript function on the target server.
|
|
|
|
The function takes in an optional *hackLvl* parameter that can be specified
|
|
to see what the weaken time would be at different hacking levels.
|
|
|
|
.. note:: For Hacknet Servers (the upgraded version of a Hacknet Node), this function will
|
|
return :code:`Infinity`.
|