switched to check /proc/meminfo instead of free -m