From 0fe00472d3e9e3990f92330f67a4320a345b95ff Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 12 Oct 2019 11:42:44 -0400 Subject: [PATCH] FIX formating issue in proc table --- drawing/Processor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawing/Processor.lua b/drawing/Processor.lua index f78e940..3bba4f8 100644 --- a/drawing/Processor.lua +++ b/drawing/Processor.lua @@ -229,7 +229,7 @@ local update = function(cr) local pid = conky(TABLE_CONKY[r].pid, '(%d+)') -- may have leading spaces if pid ~= '' then 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, 2, r, pid) Table.set(tbl, cr, 3, r, cpu)