fix: better code

This commit is contained in:
yawnt 2013-12-23 18:04:06 +01:00
parent 0bd5a1cdcb
commit 0345cc3576
1 changed files with 6 additions and 9 deletions

View File

@ -28,10 +28,7 @@ local function worker(args)
function brightness.update()
local f = assert(io.popen('cat /sys/class/backlight/' .. backlight .. "/brightness"))
brightness_now = {
level = f:read("*a")
}
brightness_now = f:read("*a")
f:close()
widget = brightness.widget