Class: Eye::SystemResources::PsAxActor
- Inherits:
-
Object
- Object
- Eye::SystemResources::PsAxActor
- Includes:
- Celluloid
- Defined in:
- lib/eye/system_resources.rb
Constant Summary collapse
- UPDATE_INTERVAL =
seconds
5
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ PsAxActor
constructor
A new instance of PsAxActor.
Constructor Details
#initialize ⇒ PsAxActor
Returns a new instance of PsAxActor.
65 66 67 |
# File 'lib/eye/system_resources.rb', line 65 def initialize set end |
Instance Method Details
#get ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/eye/system_resources.rb', line 69 def get if @at + UPDATE_INTERVAL < Time.now @at = Time.now # for minimize races async.set end @ps_aux end |