lain/cpu.md

18 lines
452 B
Markdown
Raw Normal View History

2013-09-07 14:34:51 +02:00
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
2013-09-07 14:12:13 +02:00
Shows in a textbox the average CPU usage percent for a given amount of time.
2013-09-07 12:28:21 +02:00
mycpuusage = lain.widgets.cpu()
2013-09-10 22:42:18 +02:00
### input table
2013-09-07 12:28:21 +02:00
Variable | Meaning | Type | Default
--- | --- | --- | ---
2013-09-10 22:42:18 +02:00
`timeout` | Refresh timeout seconds | int | 10
`settings` | User settings | function | empty function
2013-09-07 12:28:21 +02:00
2013-09-10 23:02:15 +02:00
`settings` can use the string `usage`, which is the cpu use percentage.
2013-09-10 22:43:13 +02:00
2013-09-10 22:42:18 +02:00
### output
A textbox.