summaryrefslogtreecommitdiff
path: root/battstat/power-management.c
diff options
context:
space:
mode:
Diffstat (limited to 'battstat/power-management.c')
-rw-r--r--battstat/power-management.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/battstat/power-management.c b/battstat/power-management.c
index cd0e3f33..ebf8ada6 100644
--- a/battstat/power-management.c
+++ b/battstat/power-management.c
@@ -392,14 +392,14 @@ power_management_getinfo (BatteryStatus *status)
return NULL;
}
- #ifdef HAVE_UPOWER
- if (using_upower)
- {
- battstat_upower_get_battery_info (status);
- return NULL;
- }
- #endif
-
+#ifdef HAVE_UPOWER
+ if (using_upower)
+ {
+ battstat_upower_get_battery_info (status);
+ return NULL;
+ }
+#endif
+
retval = apm_readinfo (status);
if (status->percent == -1) {