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.

CPU charge...
#5
I found that it is this cyclic script (15s) which increases the CPU load from <1 to 5...6... !!!


Code:
obj_surv_generale = "20/1/20"
lst_grp = {
{"20/1/1",""},
{"20/1/2",""},
{"20/1/3",""},
{"20/1/4",""},
{"20/1/5",""},
{"20/1/6",""},
{"20/1/7",""},
{"20/1/8",""},
{"20/1/9",""},
{"20/1/10",""},
{"20/1/11",""}
}
nbr_alarme = 0
for i,grp_tbl in ipairs(lst_grp) do
  obj_alarme = grp_tbl[1]
  -- log(i, obj_alarme)
  val_alarme = grp.getvalue(obj_alarme)
  if val_alarme == true then
    nbr_alarme = nbr_alarme +1
  end
end
if nbr_alarme == 0 then
  grp.write(obj_surv_generale,false)
else
  grp.write(obj_surv_generale,true)
end
Reply


Messages In This Thread
CPU charge... - by SigmaTec - 04.04.2024, 15:53
RE: CPU charge... - by Daniel - 04.04.2024, 15:55
RE: CPU charge... - by SigmaTec - 04.04.2024, 16:32
RE: CPU charge... - by Daniel - 04.04.2024, 16:37
RE: CPU charge... - by SigmaTec - 04.04.2024, 16:47
RE: CPU charge... - by Daniel - 04.04.2024, 17:04

Forum Jump: