aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-power.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 06f1c2e..729c7cf 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -615,7 +615,8 @@ count_batteries (GSList * devices, int *total, int *inuse)
{
const IndicatorPowerDevice * device = INDICATOR_POWER_DEVICE(l->data);
- if (indicator_power_device_get_kind(device) == UP_DEVICE_KIND_BATTERY)
+ if (indicator_power_device_get_kind(device) == UP_DEVICE_KIND_BATTERY ||
+ indicator_power_device_get_kind(device) == UP_DEVICE_KIND_UPS)
{
++*total;