aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-30 20:47:02 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-30 20:47:02 +0200
commitbc637062d7518988884c36762d3d257c1c8d0aad (patch)
tree89b04c4668eb6219ce209a20ecfd3f3cb95b5af8
parent052748a2cb671b5b9e85c4e4aefb76a58e88a520 (diff)
downloadvicious-legacy-bc637062d7518988884c36762d3d257c1c8d0aad.tar.xz
Coding style fixes in battery widgets.
-rw-r--r--bat.lua4
-rw-r--r--batat.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/bat.lua b/bat.lua
index 143cd24..5ea4b8d 100644
--- a/bat.lua
+++ b/bat.lua
@@ -37,7 +37,7 @@ function worker(format, batid)
-- Check if the file wasn't found or the battery isn't present
if infofile == nil or string.find(infofile, "present:[%s]+no") then
- return { "/", "/", "/" }
+ return {"/", "/", "/"}
else
-- Get capacity information
local capacity = string.match(infofile, "last full capacity:[%s]+([%d]+).*")
@@ -73,7 +73,7 @@ function worker(format, batid)
local minutesleft = math.floor((timeleft - hoursleft) * 60 )
local time = string.format("%02d:%02d", hoursleft, minutesleft)
- return { state, percent, time }
+ return {state, percent, time}
end
end
-- }}}
diff --git a/batat.lua b/batat.lua
index 8f8b95a..e8b4a14 100644
--- a/batat.lua
+++ b/batat.lua
@@ -38,7 +38,7 @@ function worker(format)
-- Store remaining time information
table.insert(battery_info, (line:match("%%,%s(.*)") or "/"))
else
- return { "/", "/", "/" }
+ return {"/", "/", "/"}
end
end
f:close()