Project

General

Profile

$cpuload » History » Revision 5

Revision 4 (Per Amundsen, 03/14/2019 08:19 PM) → Revision 5/7 (Per Amundsen, 03/14/2019 08:30 PM)

_Added in 1.8.10_ 

 *$cpuload* 

 Returns current "cpu":https://en.wikipedia.org/wiki/Central_processing_unit 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":https://en.wikipedia.org/wiki/Central_processing_unit 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* 

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