We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
status.rb currently shows free memory as just 'free' and not the allocatable memory free+buffers+cache
root@controller:~# free total used free shared buffers cached Mem: 4049804 3917140 132664 0 94708 2108096 -/+ buffers/cache: 1714336 2335468 Swap: 4192252 4020 4188232
The text was updated successfully, but these errors were encountered:
@memfree = cat /proc/meminfo | grep "MemFree" | awk '{ print $2 }'.chomp.to_i + free | grep -v total | grep buffers | tr -s ' ' | cut -d ' ' -f4.chomp.to_i
cat /proc/meminfo | grep "MemFree" | awk '{ print $2 }'
free | grep -v total | grep buffers | tr -s ' ' | cut -d ' ' -f4
That should work I do believe. Or does memfree have to be a string?
Sorry, something went wrong.
damn github killed my backticks
No branches or pull requests
status.rb currently shows free memory as just 'free' and not the allocatable memory free+buffers+cache
The text was updated successfully, but these errors were encountered: