aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2017-01-17 10:09:36 +1300
committerGitHub <noreply@github.com>2017-01-17 10:09:36 +1300
commit34b76a5de8bd35762262ec607972856d6716b736 (patch)
tree6be2060e33446bd0eb87dced00c8b9a7cc1eda14
parent69b9d1ab09c29246cc84c2d909227f7f6582d582 (diff)
downloadbattery-34b76a5de8bd35762262ec607972856d6716b736.tar.gz
battery-34b76a5de8bd35762262ec607972856d6716b736.tar.bz2
battery-34b76a5de8bd35762262ec607972856d6716b736.zip
Update battery
-rwxr-xr-xbattery2
1 files changed, 1 insertions, 1 deletions
diff --git a/battery b/battery
index 38f6a9b..b29f6ac 100755
--- a/battery
+++ b/battery
@@ -50,7 +50,7 @@ if __name__ == '__main__':
time = device.get_time()
if time:
- m = divmod(device.get_time(), 60)[0]
+ m = divmod(time, 60)[0]
h, m = divmod(m, 60)
time = " %i:%i" % (h, m)
else: