diff options
author | streetturtle <streetturtle@gmail.com> | 2020-02-05 21:11:27 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-02-05 21:11:27 -0500 |
commit | 8839e853df93c50ed5ff7c034915cd32a1c3e12a (patch) | |
tree | 58f3fd7b633ddd1472593779b74f8d0de56321ff | |
parent | 29871857553f9fdf4343a30b79fd97d342125e25 (diff) |
Fix missing cmd name in cpu widget
-rw-r--r-- | cpu-widget/cpu-widget.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua index 783be1d..d256147 100644 --- a/cpu-widget/cpu-widget.lua +++ b/cpu-widget/cpu-widget.lua @@ -141,7 +141,7 @@ local function worker(args) cpu_rows[i] = row i = i + 1 else - local pid, cmd, cpu, mem, cmd = line:match('(%d+)%s+(%w+)%s+([%d.]+)%s+([%d.]+)') + local pid, cmd, cpu, mem = line:match('(%d+)%s+(%w+)%s+([%d.]+)%s+([%d.]+)') if pid == nil then pid = 'PID' |