Commit Graph

10 Commits

Author SHA1 Message Date
Nguyễn Gia Phong 83efd26802 Nitpick style, mainly to make luacheck happy
Only cover the widget types that were recently refactored.
A few conventions are set as followed:
* Textwidth is preferably 80, since the whole point of tiling windows
  is to be able to view more pane of codes
* Standard, 3rd-party and local require should be grouped together
* Closing parentheses should not be on lines by themselves

There should be a style guide to clarify these.
2019-08-23 22:50:13 +07:00
mutlusun bc134d8792
[mem_freebsd] Correct async behaviour 2019-08-23 10:45:43 +02:00
mutlusun 73b664b63e [FreeBSD] switched to async call (and fixed previous bug) 2019-05-27 09:42:22 +02:00
mutlusun af979a04f7 read swapinfo in megabytes 2018-06-20 22:53:16 +02:00
mutlusun 2e832bc82e remove print statements (for testing purposes) 2018-06-06 22:46:03 +02:00
mutlusun 6e185bc89e calculating swap space using swapinfo (more reliable) 2018-06-06 21:55:36 +02:00
Andreas Geisenhainer 0c2313dcdd mem: adds information about used memory without freeable parts
* used memory (values 1 and 2) are: everything but free+cache
* laundry is counted as freeable, but not free.
** "notfreeable memory" (values 11 and 12) are: active+inactive+wired
2018-03-16 18:16:55 +01:00
Andreas Geisenhainer df5fa77428 memory freebsd: re-organizes memory assignment for used and unused memory
* removes unused variables
* enhances one-character-variables for better readabilitiy
* fixes calculation errors
** used memory: active, inactive, and wired
** available memory: cached, laundry, and free

see https://wiki.freebsd.org/Memory for more information
2018-03-12 21:24:04 +01:00
mutlusun 0280ac2243 freebsd memory clean ups and correct calculation 2018-03-12 21:22:48 +01:00
mutlusun 70f42e5d54
port mem widget to freebsd 2017-01-26 10:40:08 +01:00