diff options
author | Zach Scott <ethhics@gmail.com> | 2019-09-19 17:08:36 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2019-09-19 13:08:36 -0400 |
commit | 7d827b5cca185b411be3ac9b71834958f4737bdf (patch) | |
tree | 62b22f261f75d32463703674ef42f92cb1a6daf3 /src/cmd/upas/bayes/msgdb.h | |
parent | e995a0c101863688d5f14649ae3de45a7c43789c (diff) | |
download | plan9port-7d827b5cca185b411be3ac9b71834958f4737bdf.tar.gz plan9port-7d827b5cca185b411be3ac9b71834958f4737bdf.tar.bz2 plan9port-7d827b5cca185b411be3ac9b71834958f4737bdf.zip |
auxstats: replace /proc ACPI calls with /sys ones (#245)
According to <https://askubuntu.com/a/309146>, use of `/proc/acpi` to
get battery usage is deprecated. This commit replaces the two files from
this API with the single file `/sys/class/power_supply/BAT0/capacity`,
simultaneously removing the need to calculate battery percentage.
Diffstat (limited to 'src/cmd/upas/bayes/msgdb.h')
0 files changed, 0 insertions, 0 deletions