make cpu indices correct
This commit is contained in:
parent
04c3b0df40
commit
e988ce6ace
|
@ -39,7 +39,7 @@ local _create_core_ = function(cores, id, x, y)
|
||||||
|
|
||||||
for c = 0, NUM_PHYSICAL_CORES * NUM_THREADS_PER_CORE - 1 do
|
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
|
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..'}')
|
table.insert(conky_freqs, '${freq '..c..'}')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue