Class: Eye::SystemResources::PsAxActor

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/eye/system_resources.rb

Constant Summary collapse

UPDATE_INTERVAL =

seconds

5

Instance Method Summary collapse

Constructor Details

#initializePsAxActor

Returns a new instance of PsAxActor.



65
66
67
# File 'lib/eye/system_resources.rb', line 65

def initialize
  set
end

Instance Method Details

#getObject



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