summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-02-02 23:15:08 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-02-02 23:15:08 +0100
commit0a02bdcf7b3fcfe9ab328148187ed9f4b9f93a00 (patch)
tree12d6fbf9edd60202e861b6ef59ad7fb5e63012fa /docs
parent1f30d13ced7faec37946b0eb7f8127b86fed4116 (diff)
downloadpsutil-0a02bdcf7b3fcfe9ab328148187ed9f4b9f93a00.tar.gz
#966: sensors_battery().power_plugged may lie if AC0/online is not there; fallback on using /BAT0/status instead
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 2c4c87ed..2e362272 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -665,7 +665,8 @@ Sensors
:data:`psutil.POWER_TIME_UNLIMITED <psutil.POWER_TIME_UNLIMITED>`.
If it can't be determined it is set to
:data:`psutil.POWER_TIME_UNKNOWN <psutil.POWER_TIME_UNKNOWN>`.
- - **power_plugged**: ``True`` if the AC power cable is connected.
+ - **power_plugged**: ``True`` if the AC power cable is connected, ``False``
+ if not or ``None`` if it can't be determined.
Example::