summaryrefslogtreecommitdiff
path: root/src/up-daemon.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-16 13:39:26 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-16 13:39:26 +0200
commite7eed719f2c40482580c281750f5a6daf02a3d1d (patch)
tree1dbd3527cd478d50e8374023bd03b3505ba3b9a3 /src/up-daemon.c
parentf15992c6a3381f8a6275466b954d2e34c6ce89f2 (diff)
downloadupower-e7eed719f2c40482580c281750f5a6daf02a3d1d.tar.gz
daemon: Set the display device type when on battery
When on battery only, we weren't setting the display device type properly.
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r--src/up-daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index 036e82e..ff173c5 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -258,6 +258,7 @@ up_daemon_update_display_battery (UpDaemon *daemon)
state_total = UP_DEVICE_STATE_FULLY_CHARGED;
/* sum up composite */
+ kind_total = UP_DEVICE_KIND_BATTERY;
energy_total += energy;
energy_full_total += energy_full;
energy_rate_total += energy_rate;