Class: Monitors::Memory

Inherits:
BaseMonitor show all
Defined in:
lib/poolparty/monitors/monitors/memory_monitor.rb

Instance Method Summary collapse

Methods inherited from BaseMonitor

#after_close_callbacks, #before_close_callbacks, #initialize

Constructor Details

This class inherits a constructor from Monitors::BaseMonitor

Instance Method Details

#get(data = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/poolparty/monitors/monitors/memory_monitor.rb', line 6

def get(data=nil)
  uname = %x[uname]
  case uname.chomp
  when "Darwin"
    darwin_memory_usage
  else
    nix_memory_usage
  end
end