lain/cpu.md

18 lines
459 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-11 00:03:57 +02:00
`timeout` | Refresh timeout seconds | int | 5
2013-09-10 22:42:18 +02:00
`settings` | User settings | function | empty function
2013-09-07 12:28:21 +02:00
2013-09-13 00:26:46 +02:00
`settings` can use the string `cpu_now.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.