lib/eye/system_resources.rb in reel-eye-0.3.2 vs lib/eye/system_resources.rb in reel-eye-0.4

- old
+ new

@@ -29,28 +29,28 @@ end def resources(pid) return {} unless ps_aux[pid] - { :memory => memory(pid), - :cpu => cpu(pid), + { :memory => memory(pid), + :cpu => cpu(pid), :start_time => start_time(pid), :pid => pid } end # initialize actor, call 1 time before using def setup @actor ||= PsAxActor.new end - + private def reset! setup.terminate @actor = nil end - + def ps_aux setup @actor.get end