Added in 1.8.10
Returns current cpu load in percentage.
Can take a while to return a value/freeze on first use.
Added in 3.4
Returns the current cpu load in percentage for the Nth core.
N - If N = 0 returns number of cores, otherwise the load for the Nth cpu core.
//echo -ag the current load for the 3rd core is $cpuload(3)
Updated by Per Amundsen 4 days ago · 5 revisions