From 3ab61cbaf393a2a1fcb5badc66c2363931781be0 Mon Sep 17 00:00:00 2001 From: Dani Date: Sun, 2 May 2021 23:48:20 +0200 Subject: [PATCH] Update ps documentation --- doc/source/netscript/basicfunctions/ps.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/netscript/basicfunctions/ps.rst b/doc/source/netscript/basicfunctions/ps.rst index 60fb93f88..862ef0986 100644 --- a/doc/source/netscript/basicfunctions/ps.rst +++ b/doc/source/netscript/basicfunctions/ps.rst @@ -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); }