make cpu indices correct

This commit is contained in:
petrucci4prez 2018-01-05 23:36:50 -05:00
parent 04c3b0df40
commit e988ce6ace
1 changed files with 160 additions and 160 deletions

View File

@ -39,7 +39,7 @@ local _create_core_ = function(cores, id, x, y)
for c = 0, NUM_PHYSICAL_CORES * NUM_THREADS_PER_CORE - 1 do
if Util.read_file('/sys/devices/system/cpu/cpu'..c..'/topology/core_id', nil, '*n') == id then
table.insert(conky_loads, '${cpu cpu'..c..'}')
table.insert(conky_loads, '${cpu cpu'..(c+1)..'}')
table.insert(conky_freqs, '${freq '..c..'}')
end
end