From b79f7ef049046c0ad9cf511d1688cc7b96653748 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Tue, 13 Jul 2021 00:59:20 -0400 Subject: [PATCH] REF add common, remove dead code --- drawing/Processor.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drawing/Processor.lua b/drawing/Processor.lua index 28f6391..631db81 100644 --- a/drawing/Processor.lua +++ b/drawing/Processor.lua @@ -76,7 +76,6 @@ local _create_core_ = function(cores, id, x, y) 90 ), coretemp_path = string.format(CORETEMP_PATH, hwmon_index, 'temp'..(id + 2)..'_input'), - conky_freqs = conky_freqs } end @@ -164,6 +163,10 @@ end _read_cpu() -- prime once local _read_freq = function() + -- NOTE: Using the builtin conky functions for getting cpu freq seems to + -- make the entire loop jittery due to high variance latency. Querying + -- scaling_cur_freq in sysfs seems to do the same thing. It appears + -- /proc/cpuinfo is much faster and doesn't have this jittery problem. local c = Util.read_file('/proc/cpuinfo') local f = 0 for s in __string_gmatch(c, 'cpu MHz%s+: (%d+%.%d+)') do