Class: Wary::LoadMeter
- Inherits:
-
Object
- Object
- Wary::LoadMeter
- Defined in:
- lib/wary/load_meter.rb
Defined Under Namespace
Classes: MeasurementFailed
Instance Method Summary collapse
-
#initialize(shell = nil) ⇒ LoadMeter
constructor
A new instance of LoadMeter.
- #load ⇒ Object
Constructor Details
Instance Method Details
#load ⇒ Object
11 12 13 |
# File 'lib/wary/load_meter.rb', line 11 def load raw_load_avg_last_min.sub(',', '.').to_f end |