FIX formating issue in proc table
This commit is contained in:
parent
821b219f34
commit
0fe00472d3
|
@ -229,7 +229,7 @@ local update = function(cr)
|
||||||
local pid = conky(TABLE_CONKY[r].pid, '(%d+)') -- may have leading spaces
|
local pid = conky(TABLE_CONKY[r].pid, '(%d+)') -- may have leading spaces
|
||||||
if pid ~= '' then
|
if pid ~= '' then
|
||||||
local cpu = conky(TABLE_CONKY[r].cpu)
|
local cpu = conky(TABLE_CONKY[r].cpu)
|
||||||
local comm = Util.read_file('/proc/'..pid..'/comm')
|
local comm = Util.read_file('/proc/'..pid..'/comm', '(%C+)')
|
||||||
Table.set(tbl, cr, 1, r, comm)
|
Table.set(tbl, cr, 1, r, comm)
|
||||||
Table.set(tbl, cr, 2, r, pid)
|
Table.set(tbl, cr, 2, r, pid)
|
||||||
Table.set(tbl, cr, 3, r, cpu)
|
Table.set(tbl, cr, 3, r, cpu)
|
||||||
|
|
Loading…
Reference in New Issue