You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
459 B
18 lines
459 B
10 years ago
|
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
|
||
|
|
||
|
Shows in a textbox the average CPU usage percent for a given amount of time.
|
||
|
|
||
|
mycpuusage = lain.widgets.cpu()
|
||
|
|
||
|
### input table
|
||
|
|
||
|
Variable | Meaning | Type | Default
|
||
|
--- | --- | --- | ---
|
||
|
`timeout` | Refresh timeout seconds | int | 2
|
||
|
`settings` | User settings | function | empty function
|
||
|
|
||
|
`settings` can use the string `cpu_now.usage`, which is the cpu use percentage.
|
||
|
|
||
|
### output
|
||
|
|
||
|
A textbox.
|