Fixed the errors from luacheck.
This commit is contained in:
parent
32ae259b07
commit
ef0c35996f
|
@ -171,7 +171,8 @@ local function worker(user_args)
|
||||||
local maincpu = {}
|
local maincpu = {}
|
||||||
watch(CMD_slim, timeout, function(widget, stdout)
|
watch(CMD_slim, timeout, function(widget, stdout)
|
||||||
|
|
||||||
local name, user, nice, system, idle, iowait, irq, softirq, steal, _, _ = stdout:match('(%w+)%s+(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)')
|
local _, user, nice, system, idle, iowait, irq, softirq, steal, _, _ =
|
||||||
|
stdout:match('(%w+)%s+(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)%s(%d+)')
|
||||||
|
|
||||||
local total = user + nice + system + idle + iowait + irq + softirq + steal
|
local total = user + nice + system + idle + iowait + irq + softirq + steal
|
||||||
|
|
||||||
|
@ -191,7 +192,7 @@ local function worker(user_args)
|
||||||
-- It therefore only runs when the popup is open.
|
-- It therefore only runs when the popup is open.
|
||||||
local cpus = {}
|
local cpus = {}
|
||||||
popup_timer:connect_signal('timeout', function()
|
popup_timer:connect_signal('timeout', function()
|
||||||
awful.spawn.easy_async(CMD, function(stdout, stderr, reason, exit_code)
|
awful.spawn.easy_async(CMD, function(stdout, _, _, _)
|
||||||
local i = 1
|
local i = 1
|
||||||
local j = 1
|
local j = 1
|
||||||
for line in stdout:gmatch("[^\r\n]+") do
|
for line in stdout:gmatch("[^\r\n]+") do
|
||||||
|
|
Loading…
Reference in New Issue