2013-09-07 14:33:23 +02:00
|
|
|
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
|
|
|
|
|
2013-09-07 14:03:04 +02:00
|
|
|
Show the current system load in a textbox.
|
|
|
|
|
2013-09-07 14:03:21 +02:00
|
|
|
mysysload = lain.widgets.sysload()
|
2013-09-07 14:03:04 +02:00
|
|
|
|
2013-09-11 00:00:37 +02:00
|
|
|
### input table
|
2013-09-07 14:03:04 +02:00
|
|
|
|
|
|
|
Variable | Meaning | Type | Default
|
|
|
|
--- | --- | --- | ---
|
2013-09-11 00:00:37 +02:00
|
|
|
`timeout` | Refresh timeout seconds | int | 5
|
|
|
|
`settings` | User settings | function | empty function
|
|
|
|
|
|
|
|
`settings` can use strings `a`, `b` and `c`, which are loadavg over 1, 5, and 15 minutes.
|
|
|
|
|
|
|
|
### output
|
|
|
|
|
|
|
|
A textbox.
|