41 Commits (96ddf4e1dee808d6ae8162fc1a13126a3d4c77dc)

Author SHA1 Message Date
Aaron Marcher 96ddf4e1de Consistency with 80 char limit and breaks 8 years ago
Aaron Marcher acfa1f50c2 Simplify format specifiers for uintmax_t 8 years ago
Aaron Marcher 43a12832a3 Change uint64_t to uintmax_t 8 years ago
Aaron Marcher d76b1a21fc battery: 64 bit ints on Linux 8 years ago
Aaron Marcher 609ef3aa1f battery: Remove unnecessary defines for paths 8 years ago
Aaron Marcher b0401b13bb Clean up header includes 8 years ago
Aaron Marcher aa8654795d battery_remaining: check for division by zero 8 years ago
Aaron Marcher a546d4b585 battery_remaining: Change float to double 8 years ago
Aaron Marcher 103945e7bb battery: Minor coding style fixes 8 years ago
Aaron Marcher ec5c35ec9f Remove units from numbers 8 years ago
David Demelier f386a03a20 Support energy_now/power_now in battery_remaining 8 years ago
Aaron Marcher 74c4f4ebda Add the percent sign to *_perc functions 8 years ago
Laslo Hunhold 422cadfd5f Implement esnprintf() and make formatted calls more efficient 8 years ago
Aaron Marcher 74891945d8 Revert aac29e2 as it is nonsense 8 years ago
Aaron Marcher aac29e2bba battery: Move out struct as common code 8 years ago
Aaron Marcher f317819984 Use %d instead of accidentally %i 8 years ago
Aaron Marcher f170028527 Port battery_remaining to Linux 8 years ago
Aaron Marcher b04ca3ef45 Fix memory leak 8 years ago
Tobias Tschinkowitz 367f8a8c44 battery: fixed remaining time on connected AC 8 years ago
Aaron Marcher 2604f25b16 Fix indentation 8 years ago
Tobias Tschinkowitz 8c8326f793 Add battery_remaining function on OpenBSD 8 years ago
Laslo Hunhold 80fc20d1d6 Add warn() and die() 8 years ago
Aaron Marcher b759662983 Remove UNUSED macro 8 years ago
Aaron Marcher fc8b6f81a5 Mark unused parameters, fix compiler warnings 8 years ago
Aaron Marcher 7ab183c97f Unify type of in for loops 8 years ago
Aaron Marcher 7be675f154 Unify type of `i` in for loops 8 years ago
Aaron Marcher ee5ec75621 Fix coding style 8 years ago
Aaron Marcher 417f473fe2 battery: Remove full indicator 8 years ago
Aaron Marcher 2bd581a47b battery_state: Unify unknown state with "?" symbol 8 years ago
Aaron Marcher 4f5ac5d9fe Remove battery_power for various reasons 8 years ago
Aaron Marcher 41deabf2ec battery_perc: Port to OpenBSD 8 years ago
Laslo Hunhold 9750a3d731 Use indentation to increase readability 8 years ago
Laslo Hunhold 42edfea89a Revert component-split 8 years ago
Quentin Rameau 720569bd56 battery: OS split 8 years ago
Aaron Marcher 09950055ba battery: Separate function for readbility 8 years ago
Aaron Marcher faa52bdcc0 Format error messages properly 8 years ago
Aaron Marcher 96f3a8a54e Get rid of err.h as it is not portable 8 years ago
Aaron Marcher e79d4932ea More robust preprocessor switches 8 years ago
Aaron Marcher 7e3f80c1a3 battery_perc: Port to OpenBSD. 8 years ago
Aaron Marcher ebf5a35052 Build Linux-only functions only on Linux 8 years ago
Laslo Hunhold 7246dc4381
Move components into dedicated subdirectory 8 years ago
Aaron Marcher 11d4bec648
Added LICENSE statements to all source files 8 years ago
Aaron Marcher 6820631175
Split into multiple files 8 years ago