aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/disk/mkfile
diff options
context:
space:
mode:
authorZach Scott <ethhics@gmail.com>2019-09-19 17:08:36 +0000
committerDan Cross <crossd@gmail.com>2019-09-19 13:08:36 -0400
commit7d827b5cca185b411be3ac9b71834958f4737bdf (patch)
tree62b22f261f75d32463703674ef42f92cb1a6daf3 /src/cmd/disk/mkfile
parente995a0c101863688d5f14649ae3de45a7c43789c (diff)
downloadplan9port-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/disk/mkfile')
0 files changed, 0 insertions, 0 deletions