From fbc0e6027ee50b38875b4116f14327235755bc53 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 1 Aug 2022 13:13:57 -0400 Subject: [PATCH] REF add some notes --- src/modules/memory.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/memory.lua b/src/modules/memory.lua index 4c1aec2..b584520 100644 --- a/src/modules/memory.lua +++ b/src/modules/memory.lua @@ -189,9 +189,12 @@ return function(update_freq, config, common, width, point) num_rows) local obj = common.make_text_table(point.x, y, width, num_rows, 'Mem (%)') local update = function() + -- TODO this is broken in conky 1.12 for r = 1, num_rows do text_table.set(obj, 1, r, i_o.conky(table_conky[r].comm, '(%S+)')) text_table.set(obj, 2, r, i_o.conky(table_conky[r].pid)) + -- NOTE: according to the conky source (top.cc) this is just the RSS + -- of a given process divided by the total memory text_table.set(obj, 3, r, i_o.conky(table_conky[r].mem)) end end