float :sysinfo-load ( int $TIME )
float :sysinfo-load
Available only on Linux.
Returns the system load average. TIME can be an int in 0-2 range; 0
returns the 1-minute load, 1
returns the 5-minute load, and 2
returns the 15-minute load. When omitted, TIME defaults to 0
(1-minute load).
Like other Linux-only sysinfo functions, the result is cached.
# Sysinfo load example. :writeln s'Load average: ' (:sysinfo-load) s', ' (:sysinfo-load i1) s', ' :sysinfo-load i2
wikistrona zmodyfikowana 2014/0601/2317