From ef0c35996f28db341f943a729b810d28a32cc853 Mon Sep 17 00:00:00 2001 From: atopion Date: Tue, 23 Mar 2021 12:35:53 +0100 Subject: Fixed the errors from luacheck. --- cpu-widget/cpu-widget.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpu-widget') diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua index 841468c..d804c80 100644 --- a/cpu-widget/cpu-widget.lua +++ b/cpu-widget/cpu-widget.lua @@ -171,7 +171,8 @@ local function worker(user_args) local maincpu = {} 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 @@ -191,7 +192,7 @@ local function worker(user_args) -- It therefore only runs when the popup is open. local cpus = {} 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 j = 1 for line in stdout:gmatch("[^\r\n]+") do -- cgit v1.2.3