Age | Commit message (Collapse) | Author |
|
Available memory is determined from meminfo's `MemAvailable:` on 3.14 and
newer, and falls back to `free + buffer + cache` on older systems.
Introduces new variables `<available{,ratio,bar,vbar,ipat}>`.
|
|
|
|
* Batt
* Bright
* Cpu
* Disk
* MPD
* Mem
* MultiCpu
* Net
* Volume
* Wireless
|
|
|
|
|
|
|
|
Use the functionality from newer kernels if available. Basically, the
free+buffer+cache metric is a massive hack and not accurate anyways
(e.g., not all cache can be swapped out and kernel accounting can change
whenever). Kernels 3.14 and newer have MemAvailable in meminfo which is
more accurate; use it if possible.
|
|
Newer kernels have changed the order of the lines in the /proc/meminfo
find (MemAvailable is now line 3). To support this and older kernels,
use the key from the map when getting data from it rather than static
line numbers.
|
|
|
|
|
|
|