From 21da4824a74d2d6e592f7382b061a6505d4660e4 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 29 Nov 2011 15:47:26 +0000 Subject: [PATCH] trivial: fix the name of the percentage file --- src/linux/up-device-supply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 56b6cf2..43f6835 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -684,7 +684,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) if (energy < 0.01f && energy_rate < 0.01f && energy_full < 0.01f) { - percentage = sysfs_get_double (native_path, "CAPACITY"); + percentage = sysfs_get_double (native_path, "capacity"); } /* the battery isn't charging or discharging, it's just