Merge pull request #919 from Daniferrito/patch-2

Update ps documentation
This commit is contained in:
hydroflame 2021-05-03 02:21:22 -04:00 committed by GitHub
commit 6203d8d6f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
} }