summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-06-18 17:21:43 +0200
committerBastien Nocera <hadess@hadess.net>2018-06-18 17:45:40 +0200
commitc4ca520f248afceffdf55725f37d7d931ddbc2ca (patch)
tree7ce4f456cc632336434e685b608123a50f339ec7 /autogen.sh
parent041e70867fe3e34a998a60716a73e368179f27b7 (diff)
downloadupower-c4ca520f248afceffdf55725f37d7d931ddbc2ca.tar.gz
linux: Better error reporting from sysfs_get_double_with_error()
sysfs_get_double_with_error() used to return -1.0 for errors, but in some cases, we might want -1.0 to be a valid value, such as for negative discharge rates. Return FALSE on error instead.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions