09.06.2025, 14:40
(09.06.2025, 07:00)Daniel Wrote: If this graph is correct then your CPU is very high.
yes, that is...
Code:
-- Indirizzo oggetto virtuale
local ga = '50/0/4'
-- Legge il primo valore di load average da /proc/loadavg
local loadavg_raw = io.open('/proc/loadavg', 'r'):read('*a')
local load_1min = tonumber(loadavg_raw:match('(%d+%.?%d*)'))
-- Scrive il valore nell'oggetto virtuale, se valido
if load_1min then
grp.write(ga, load_1min, dt.float16)
end
the way I get the cpu load