Project

General

Profile

Added in 1.8.10

$cpuload

Returns current cpu load in percentage.

Can take a while to return a value/freeze on first use.


Added in 3.4

$cpuload(N)

Returns the current cpu load in percentage for the Nth core.

Parameters

N - If N = 0 returns number of cores, otherwise the load for the Nth cpu core.

Example

//echo -ag the current load for the 3rd core is $cpuload(3)

Updated by Per Amundsen 4 days ago · 5 revisions

Also available in: PDF HTML TXT