Method: Informo::Memory#installed
- Defined in:
- lib/informo/memory.rb
#installed ⇒ Object
returns the amount of physical memory installed
40 41 42 43 44 45 46 47 |
# File 'lib/informo/memory.rb', line 40 def installed `free -m`.each_line do |line| if line =~ /^Mem.+?(\d+)\s+/ installed_memory = $1 return installed_memory end end end |