Project

General

Profile

Actions

Added in 1.8.10

$cpuload

Returns current CPU load in percentage.

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

Properties

.cores - Returns the combined load of all CPU cores.


Added in 3.4

$cpuload(N)

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

Parameters

Parameter Description
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 9 months ago · 7 revisions

Also available in: PDF HTML TXT