Skip to content
Commit b436eb05 authored by Zachary Cook's avatar Zachary Cook
Browse files

luci-mod-status: use available and cached memory for progress bars



Fixes: #1148

Uses available and cached memory from /proc/meminfo via procd, and carefully
handles the cases where they are nil or zero, so as to not require specific
linux or procd versions to function

MemAvailable is a better estimate than free + buffered/cached, see:
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0

Also adds a new progressbar that shows cached memory if not nil

Signed-off-by: default avatarZachary Cook <zachcook1991@gmail.com>
parent aa5151e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment