Difference between revisions of "Number devices.system.averageLoad"
Jump to navigation
Jump to search
(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…“) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Returns the load (in percent) of the socket's CPU. <b>The property is read only!</b> | Returns the load (in percent) of the socket's CPU. <b>The property is read only!</b> | ||
| − | + | ||
| + | <i>number</i> <code>devices.system.averageLoad</code> | ||
| + | |||
=== Value === | === Value === | ||
| Line 12: | Line 14: | ||
logf("%d", devices.system.averageLoad) | logf("%d", devices.system.averageLoad) | ||
end | end | ||
| − | + | ||
logLoad() | logLoad() | ||
Latest revision as of 19:36, 18 April 2017
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()