diff options
Diffstat (limited to 'src/linux/up-device-supply.c')
-rw-r--r-- | src/linux/up-device-supply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index a2a657f..3316a5f 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -145,7 +145,7 @@ up_device_supply_reset_values (UpDeviceSupply *supply) "percentage", (gdouble) 0.0, "temperature", (gdouble) 0.0, "technology", UP_DEVICE_TECHNOLOGY_UNKNOWN, - "charge-cycles", -1, + "charge-cycles", 0, NULL); } @@ -566,7 +566,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply, gint64 time_to_empty; gint64 time_to_full; gdouble temp; - int charge_cycles = -1; + guint charge_cycles = 0; gchar *manufacturer = NULL; gchar *model_name = NULL; gchar *serial_number = NULL; |