number devices.system.averageLoad

From wiki.netio-products.com
Revision as of 23:38, 15 April 2017 by Jturon (talk | contribs) (Založena nová stránka s textem „{{DISPLAYTITLE:number devices.system.averageLoad}} Returns the load (in percent) of the socket's CPU. <b>The property is read only!</b> number devices.sy…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the load (in percent) of the socket's CPU. The property is read only!

number devices.system.averageLoad

Value

number load of the CPU (in percent, 0-100)

Usage

-- log load of the CPU every minute
function logLoad()
  logf("%d", devices.system.averageLoad)
end
logLoad()