summaryrefslogtreecommitdiffstats
path: root/BatteryMeter.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-17 18:12:38 +1100
committerNathan Scott <nathans@redhat.com>2020-11-18 10:17:33 +1100
commitea9622b8c9444d92007f24fc54597f83c498f11d (patch)
tree13cb45909d2c873b7b09ec59580d6a8db4676b0b /BatteryMeter.c
parente3af8d0d0851dd6ce25446a7f9a99e2127795a78 (diff)
Merge individual Battery.[ch] files into Platform.[ch]
Consistent with everything else involving platform-specific calls from core htop code.
Diffstat (limited to 'BatteryMeter.c')
-rw-r--r--BatteryMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/BatteryMeter.c b/BatteryMeter.c
index ac126cea..cd8439c4 100644
--- a/BatteryMeter.c
+++ b/BatteryMeter.c
@@ -11,7 +11,7 @@ This meter written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com).
#include <math.h>
-#include "Battery.h"
+#include "Platform.h"
#include "CRT.h"
#include "Object.h"
#include "XUtils.h"
@@ -25,7 +25,7 @@ static void BatteryMeter_updateValues(Meter* this, char* buffer, int len) {
ACPresence isOnAC;
double percent;
- Battery_getData(&percent, &isOnAC);
+ Platform_getBattery(&percent, &isOnAC);
if (isnan(percent)) {
this->values[0] = NAN;

© 2014-2024 Faster IT GmbH | imprint | privacy policy