diff options
Diffstat (limited to 'lib/bluetooth/device.vala')
-rw-r--r-- | lib/bluetooth/device.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bluetooth/device.vala b/lib/bluetooth/device.vala index 74f8d83..b38a5ce 100644 --- a/lib/bluetooth/device.vala +++ b/lib/bluetooth/device.vala @@ -114,12 +114,12 @@ public class AstalBluetooth.Device : Object { } /** - * The percentage of battery left on the device if it has one, else 0. + * The percentage of battery left on the device if it has one, else -1. */ - public uint battery_percentage { + public double battery_percentage { get { - if (battery != null) return battery.percentage; - else return 0; + if (battery != null) return battery.percentage * 0.01; + else return -1; } } |