Here you have this script:
First 3 values means averaged 1min, 5min, 15min where 0 means 0% and 1 means 100%. Further values are current number of runnable tasks and the process ID of the process that most recently ran.
See also:
http://www.loadavg.com/2012/01/what-is-loadavg/
Code:
f = assert (io.popen("cat /proc/loadavg"))
loadavg = {}
for line in f:lines() do
table.insert(loadavg, line)
end -- for loop
f:close()
log(loadavg)
First 3 values means averaged 1min, 5min, 15min where 0 means 0% and 1 means 100%. Further values are current number of runnable tasks and the process ID of the process that most recently ran.
See also:
http://www.loadavg.com/2012/01/what-is-loadavg/