mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
Merge pull request #919 from Daniferrito/patch-2
Update ps documentation
This commit is contained in:
commit
6203d8d6f4
@ -24,7 +24,8 @@ ps() Netscript Function
|
|||||||
.. code-block:: javascript
|
.. code-block:: javascript
|
||||||
|
|
||||||
processes = ps("home");
|
processes = ps("home");
|
||||||
for (let i = 0; i < ps.length; ++i) {
|
for (let i = 0; i < processes.length; ++i) {
|
||||||
tprint(ps[i].filename + ' ' + ps[i].threads);
|
tprint(processes[i].filename + ' ' + processes[i].threads);
|
||||||
tprint(ps[i].args);
|
tprint(processes[i].args);
|
||||||
|
tprint(processes[i].pid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user