From ea9622b8c9444d92007f24fc54597f83c498f11d Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 17 Nov 2020 18:12:38 +1100 Subject: Merge individual Battery.[ch] files into Platform.[ch] Consistent with everything else involving platform-specific calls from core htop code. --- BatteryMeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BatteryMeter.c') 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 -#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; -- cgit v1.2.3