This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM reboots
#9
(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
Reply


Messages In This Thread
LM reboots - by gdimaria - 03.06.2025, 16:51
RE: LM reboots - by Daniel - 03.06.2025, 17:33
RE: LM reboots - by gdimaria - 04.06.2025, 08:00
RE: LM reboots - by Daniel - 04.06.2025, 08:06
RE: LM reboots - by gdimaria - 04.06.2025, 08:39
RE: LM reboots - by Erwin van der Zwart - 04.06.2025, 21:03
RE: LM reboots - by gdimaria - 08.06.2025, 08:54
RE: LM reboots - by Daniel - 09.06.2025, 07:00
RE: LM reboots - by gdimaria - 09.06.2025, 14:40

Forum Jump: