diff options
author | atopion <atopion@outlook.com> | 2021-03-23 12:35:53 +0100 |
---|---|---|
committer | atopion <atopion@outlook.com> | 2021-03-23 12:35:53 +0100 |
commit | ef0c35996f28db341f943a729b810d28a32cc853 (patch) | |
tree | f9e71ae413d44d67fcdc24e3d365df8e381318ff | |
parent | 32ae259b0738d071c27fc3f5a3efce3606cdfa42 (diff) |
Fixed the errors from luacheck.
-rw-r--r-- | cpu-widget/cpu-widget.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |