lain/mem.md

20 lines
488 B
Markdown
Raw Normal View History

2013-09-07 14:34:12 +02:00
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
2013-09-07 14:08:42 +02:00
Shows memory status (in MiB) in a textbox.
2013-09-07 12:11:44 +02:00
mymem = lain.widgets.mem()
The function takes a table as an optional argument. That table may
contain:
Variable | Meaning | Type | Default
--- | --- | --- | ---
2013-09-10 23:33:06 +02:00
`timeout` | Refresh timeout seconds | int | 10
`settings` | User settings | function | empty function
`settings` can use the strings `used` (memory used MB) and `swapused` (swap used MB).
### output
A textbox.