lain/sysload.md

18 lines
454 B
Markdown
Raw Normal View History

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
2013-09-12 21:49:36 +02:00
`settings` can use strings `load_1`, `load_5` and `load_15`, which are loadavg over 1, 5, and 15 minutes.
2013-09-11 00:00:37 +02:00
### output
A textbox.