FIX core id mismatches

This commit is contained in:
Nathan Dwarshuis 2021-07-17 22:45:30 -04:00
parent cc806784e6
commit 8c20a88abd
2 changed files with 4 additions and 4 deletions

2
core

@ -1 +1 @@
Subproject commit a0ce1c015dce79db4bd30af68893fbcedc1d5cff
Subproject commit c9d0709b7f16df5cdbd29fca77d768e9a8eea672

View File

@ -155,12 +155,12 @@ return function(update_freq)
for _, load_data in pairs(cpu_loads) do
local cur = load_data.percent_active
load_sum = load_sum + cur
CompoundDial.set(cores[load_data.core_id].loads, load_data.thread_id, cur)
CompoundDial.set(cores[load_data.conky_core_id].loads, load_data.conky_thread_id, cur)
end
for core_id, path in pairs(coretemp_paths) do
for conky_core_id, path in pairs(coretemp_paths) do
local temp = __math_floor(0.001 * Util.read_file(path, nil, '*n'))
Common.text_ring_set(cores[core_id].coretemp, cr, temp)
Common.text_ring_set(cores[conky_core_id].coretemp, cr, temp)
end
-- For some reason this call is slow (querying anything with pstate in