Method: God::System::SlashProcPoller#percent_memory

Defined in:
lib/god/system/slash_proc_poller.rb

#percent_memoryObject



38
39
40
41
42
# File 'lib/god/system/slash_proc_poller.rb', line 38

def percent_memory
  (memory / @@total_mem.to_f) * 100
rescue # This shouldn't fail is there's an error (or proc doesn't exist)
  0
end