Class: ProconBypassMan::LoadAgv
- Inherits:
-
Object
- Object
- ProconBypassMan::LoadAgv
- Defined in:
- lib/procon_bypass_man/support/load_agv.rb
Constant Summary collapse
- PATH =
'/proc/loadavg'
Instance Method Summary collapse
Instance Method Details
#get ⇒ [Integer, Integer, Integer]
6 7 8 9 10 11 12 |
# File 'lib/procon_bypass_man/support/load_agv.rb', line 6 def get loadavg = get_proc_loadavg loadavg =~ /^([0-9.]+)\s([0-9.]+)\s([0-9.]+)/ return [$1.to_f, $2.to_f, $3.to_f].join("-") rescue Errno::ENOENT "" end |