mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23: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
|
||||
|
||||
processes = ps("home");
|
||||
for (let i = 0; i < ps.length; ++i) {
|
||||
tprint(ps[i].filename + ' ' + ps[i].threads);
|
||||
tprint(ps[i].args);
|
||||
for (let i = 0; i < processes.length; ++i) {
|
||||
tprint(processes[i].filename + ' ' + processes[i].threads);
|
||||
tprint(processes[i].args);
|
||||
tprint(processes[i].pid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user