Table of Contents

loadavg plugin

This plugin returns the system load average over the last 1, 5 or 15 minutes.


Functions

loadavg(index)return system load average

index may be 1, 2 or 3 (meaning the last 1, 5 or 15 minutes).

see getloadavg(3) for details.


Example

Widget Load {
    class 'Text'
    expression loadavg(1)
    prefix 'Load'
    postfix loadavg(1) > 1.0 ? '!' : ' '
    width 10
    precision 1
    align 'R'
    update 300
}