summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2015-02-09 11:02:05 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2015-02-09 11:02:05 +0100
commit5c7e53c558290e1cb4f4270dabfbc5d029ae0596 (patch)
tree99ec75e4694f0d492fb988b8b313652d0ae33ee9
parenta09687d699ed9bc65a8b9c3c8c2bee5e72cff2c4 (diff)
downloadpsutil-5c7e53c558290e1cb4f4270dabfbc5d029ae0596.tar.gz
update doc [skip ci]
-rw-r--r--HISTORY.rst3
-rw-r--r--docs/index.rst3
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY.rst b/HISTORY.rst
index 6c37c973..af7f0f40 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -9,11 +9,12 @@ Bug tracker at https://github.com/giampaolo/psutil/issues
- #582: connection constants returned by psutil.net_connections() and
psutil.Process.connections() were turned from int to enums on Python > 3.4.
-
**Bug fixes**
- #555: [Linux] psutil.users() correctly handles ":0" as an alias for
"localhost"
+- #579: [Windows] fixed many compiler warnings.
+- #585: [FreeBSD] net_connections() may raise KeyError.
2.2.1 - 2015-02-02
diff --git a/docs/index.rst b/docs/index.rst
index 86651b41..29972f98 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -837,7 +837,8 @@ Process class
`CPU affinity <http://www.linuxjournal.com/article/6799?page=0,0>`__.
CPU affinity consists in telling the OS to run a certain process on a
limited set of CPUs only. The number of eligible CPUs can be obtained with
- ``list(range(psutil.cpu_count()))``.
+ ``list(range(psutil.cpu_count()))``. On set raises ``ValueError`` in case
+ an invalid CPU number is specified.
>>> import psutil
>>> psutil.cpu_count()