From: Luke Bonham Date: Tue, 19 May 2015 12:12:00 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/copycat-killer/lain X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/3a448b23d556bfddf25d53cf139a57a174446c5a?hp=aaf1142688933bc5673d4b8309886db2a178ce90 Merge branch 'master' of https://github.com/copycat-killer/lain --- diff --git a/widgets/contrib/tpbat/smapi.lua b/widgets/contrib/tpbat/smapi.lua index 862d4cd..c7f093e 100644 --- a/widgets/contrib/tpbat/smapi.lua +++ b/widgets/contrib/tpbat/smapi.lua @@ -87,7 +87,7 @@ function smapi:battery(name) return "N/A" end - local hrs = mins_left / 60 + local hrs = math.floor(mins_left / 60) local min = mins_left % 60 return string.format("%02d:%02d", hrs, min) end