Project

General

Profile

Actions

$cpuload » History » Revision 6

« Previous | Revision 6/7 (diff) | Next »
Per Amundsen, 02/16/2023 09:20 PM


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

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 about 1 year ago · 6 revisions

Also available in: PDF HTML TXT