Fix missing cmd name in cpu widget

This commit is contained in:
streetturtle 2020-02-05 21:11:27 -05:00
parent 2987185755
commit 8839e853df

View file

@ -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'