Sha256: 78823ca8793403c4b73322d369c8f123bfa07c4e4fd714efdf5a5b3069ea4931

Contents?: true

Size: 274 Bytes

Versions: 6

Compression:

Stored size: 274 Bytes

Contents

# module PoolParty
#   module Monitors
#     
#     class LoadMonitor < BaseMonitor
#       
#       def run
#         stdout = %x[uptime]
#         stdout.split(/\s+/)[-1].to_f rescue 0.0
#       end
#             
#     end
#     
#     register_monitor :cpu
#   end
# end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 lib/poolparty/monitors/monitors/load_monitor.rb
auser-poolparty-1.1.3 lib/poolparty/monitors/monitors/load_monitor.rb
auser-poolparty-1.1.4 lib/poolparty/monitors/monitors/load_monitor.rb
auser-poolparty-1.1.5 lib/poolparty/monitors/monitors/load_monitor.rb
fairchild-poolparty-1.1.3 lib/poolparty/monitors/monitors/load_monitor.rb
fairchild-poolparty-1.1.4 lib/poolparty/monitors/monitors/load_monitor.rb