Commit Graph

27 Commits

Author SHA1 Message Date
Alastair Poole 3d51dfe687 Linux: Batteries.
Linux also provides battery vendor and model. As with FreeBSD
set the label for battery name "properly".
2019-09-08 01:13:43 +01:00
Alastair Poole f086b0d2d5 FreeBSD: Batteries.
Add vendor informaiton for evisum battery display.
2019-09-07 22:50:22 +01:00
Alastair Poole f07aeeb77b FreeBSD: Support multiple batteries.
This was much easier than I had reckoned.

Having the battery_names array is sadly a necessary evil for now.

Use the same logic for all platforms. Tested on FreeBSD.
Needs retesting on Linux, macOS and OpenBSD. The price of
support multiple operating systems!
2019-09-07 22:37:58 +01:00
Alastair Poole 6968d4274e Changes: Stylistic and fix one API call. 2019-09-07 11:37:15 +01:00
Alastair Poole 12ae98cab7 Minor changes 2019-09-06 00:26:05 +01:00
Alastair Poole 2f46f79e77 Silence some compiler warnings 2019-09-05 23:01:00 +01:00
Alastair Poole e5bbcd1f5c More tidying. 2019-09-05 22:33:38 +01:00
Alastair Poole 38d50d924b Make this more efficient. 2019-09-02 20:18:35 +01:00
Alastair Poole 7116c0bde7 Use better battery names 2019-09-01 16:57:36 +01:00
Alastair Poole 6fd8b24a06 Fix more 2019-09-01 15:07:35 +01:00
Alastair Poole 09022fa5a3 memory: let's free this. 2019-09-01 14:59:53 +01:00
Alastair Poole 6ba6c25135 Batteries: Add multiple suppor 2019-09-01 14:54:27 +01:00
Alastair Poole 4792cd07e4 Fix: Let's ensure we can properly escape this function.
Thanks to Apostolos Bartziokas for his patience and testing.
His commitment is very valuable.
2019-09-01 14:22:40 +01:00
Alastair Poole 37cb378cf9 Make sure we exit this hole 2019-09-01 14:04:40 +01:00
Alastair Poole 2c2930cc60 Fixe 2019-09-01 12:41:56 +01:00
Alastair Poole f9dd314951 Fix issues with Linux batteries and leak 2019-08-29 23:55:43 +01:00
Alastair Poole 4397b3eafc OpenBSD: Stack issues. 2019-08-24 16:35:41 +01:00
Alastair Poole 994f1ea1b3 system: fix typo causing bug. 2019-06-08 23:53:10 +01:00
Alastair Poole 56f2667451 OpenBSD: Unified CPU polling API.
Further testing proves we can use one approach for both SP and MP
machines.
2019-05-25 16:24:55 +01:00
Alastair Poole 95f81498c0 OpenBSD: Fix SP. 2019-05-25 16:03:38 +01:00
Alastair Poole 5860cd7351 Fixes: Multiple Batteries and CPU on OpenBSD/Linux 2019-05-25 15:34:33 +01:00
Alastair Poole b3d388ecbf rel: 0.2.0
Last release before redesign.
2018-10-09 12:45:27 +01:00
Alastair Poole 45b3dcfa87 Refactoring and fixing stuff. 2018-10-02 15:38:06 +01:00
Alastair Poole d0e38dbf6e Refactor again. 2018-06-10 17:06:34 +01:00
Alastair Poole a82a33f546 Fix bat 2018-06-10 14:17:32 +01:00
Alastair Poole 08e57b1f95 Add more 2018-06-10 14:09:44 +01:00
Alastair Poole de2818a394 First commit 2018-06-04 11:11:21 +01:00