Module: Memory::Master
- Defined in:
- lib/poolparty/monitors/memory.rb
Instance Method Summary collapse
-
#memory ⇒ Object
Get the average memory usage over the cloud.
Instance Method Details
#memory ⇒ Object
Get the average memory usage over the cloud
9 10 11 |
# File 'lib/poolparty/monitors/memory.rb', line 9 def memory nodes.size > 0 ? nodes.inject(0) {|i,a| i += a.memory } / nodes.size : 0.0 end |