summaryrefslogtreecommitdiffhomepage
path: root/default.nix
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2020-02-11 09:37:58 +0300
committerPaul Fertser <fercerpav@gmail.com>2020-02-11 09:48:21 +0300
commitf0eb83eb8234add5a4248a6084ebd57953b29c2d (patch)
treefb78714cc829410565cbcfaba65b5e63489d5c8a /default.nix
parent690446b534a1d88b64030cb300f0178b4680b0d8 (diff)
downloadxmobar-f0eb83eb8234add5a4248a6084ebd57953b29c2d.tar.gz
xmobar-f0eb83eb8234add5a4248a6084ebd57953b29c2d.tar.bz2
Battery: fix time calculations on some Linux systems
The calculations are based on the assumption that current_now (or power_now) are always positive. However, power_supply documentation in the kernel sources say nothing about it, and so some drivers provide a signed value (e.g. bq27xxx_battery_current). Discovered and fixed on ac100/paz00 netbook.
Diffstat (limited to 'default.nix')
0 files changed, 0 insertions, 0 deletions