mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
Update ps documentation
This commit is contained in:
parent
e2371a0ef6
commit
3ab61cbaf3
@ -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