Open breu opened 12 years ago
@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
That should work I do believe. Or does memfree have to be a string?
damn github killed my backticks
status.rb currently shows free memory as just 'free' and not the allocatable memory free+buffers+cache