From 0e54fd1eda87c89cc16a36ec4b3e79351051afb8 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 12 Oct 2019 10:04:45 -0400 Subject: [PATCH] ENH use faster pid comm lookup method --- drawing/Processor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawing/Processor.lua b/drawing/Processor.lua index 4b5932a..f0636ff 100644 --- a/drawing/Processor.lua +++ b/drawing/Processor.lua @@ -228,7 +228,7 @@ local update = function(cr) local pid = conky(TABLE_CONKY[r].pid, '(%S+)') if pid ~= '' then local cpu = conky(TABLE_CONKY[r].cpu) - local comm = Util.read_file('/proc/'..pid..'/stat', '%d+%s+%((.+)%)') + local comm = Util.read_file('/proc/'..pid..'/comm') Table.set(tbl, cr, 1, r, comm) Table.set(tbl, cr, 2, r, pid) Table.set(tbl, cr, 3, r, cpu)