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.

LM5 strange behavior
#5
I've added logging every 2 minute current CPU if it's above 1. I'm pretty sure that this isn't a problem here but let's log this.

I'm using such function to get current CPU usage stats:
Code:
function getCPUStats()
  local f = assert(io.popen("cat /proc/loadavg"))
  local loadavg = {}
  for line in f:lines() do table.insert(loadavg, line) end
  f:close()
  -- 0.16 0.19 0.15 1/69 16886
  loadavg = loadavg[1]:split(' ')
  for i=1, 5, 1 do
    if i ~= 4 then loadavg[i] = tonumber(loadavg[i]) end
  end
  return loadavg
end

But as I understand even if there will be some problem with writing to SD card LM shouldn't has a problem until restart.
Done is better than perfect
Reply


Messages In This Thread
LM5 strange behavior - by buuuudzik - 06.07.2022, 08:14
RE: LM5 strange behavior - by admin - 06.07.2022, 08:29
RE: LM5 strange behavior - by buuuudzik - 06.07.2022, 08:46
RE: LM5 strange behavior - by admin - 06.07.2022, 09:04
RE: LM5 strange behavior - by buuuudzik - 06.07.2022, 09:12
RE: LM5 strange behavior - by mishoboss - 05.04.2024, 20:23

Forum Jump: