-
Notifications
You must be signed in to change notification settings - Fork 209
Luke Bonham edited this page Mar 30, 2016
·
27 revisions
Shows in a textbox the current CPU usage, both in general and per core.
mycpuusage = lain.widgets.cpu()
Variable | Meaning | Type | Default |
---|---|---|---|
timeout |
Refresh timeout seconds | int | 2 |
settings |
User settings | function | empty function |
settings
can use these strings:
-
cpu_now.usage
, the general use percentage; -
cpu_now[i].usage
, the i-th core use percentage, withi
starting from 1.
A textbox.