summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 13:29:21 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 13:29:21 +0100
commita1517dd205b46841d7317123dc1c0495ad48599b (patch)
tree673ff6aedec03dc4e550c2b98d6f35384374be72 /docs
parentcec43a2015da2b7cf02d7f01b719731348881ce2 (diff)
downloadpsutil-a1517dd205b46841d7317123dc1c0495ad48599b.tar.gz
update doc
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 499c7996..67719992 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -873,8 +873,8 @@ Functions
``info`` attribute attached to the returned :class:`Process` instances.
If *attrs* is an empty list it will retrieve all process info (slow).
- If *new_only* is true this function will yield only new processes which
- appeared since the last time it was called.
+ If *new_only* is true this function will take into consideration only
+ new PIDs which appeared since the last time it was was called.
Sorting order in which processes are returned is based on their PID.
Example::
@@ -898,7 +898,7 @@ Functions
3: {'name': 'ksoftirqd/0', 'username': 'root'},
...}
- Get new processes since last call::
+ Get only new processes since last call::
>>> for proc in psutil.process_iter(['pid', 'name'], new_only=True):
... print(proc.info)