wiki:plugin_loadavg

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
}

Last modified 14 years ago Last modified on 04/03/05 09:30:16