lib/eye/system_resources.rb in reel-eye-0.5.1 vs lib/eye/system_resources.rb in reel-eye-0.5.2
- old
+ new
@@ -13,12 +13,12 @@
if cpu = cache.proc_cpu(pid)
cpu.percent * 100
end
end
- def childs(parent_pid)
- cache.childs(parent_pid)
+ def children(parent_pid)
+ cache.children(parent_pid)
end
def start_time(pid) # unixtime
if cpu = cache.proc_cpu(pid)
cpu.start_time.to_i / 1000
@@ -77,10 +77,10 @@
@cpu[pid] ||= Eye::Sigar.proc_cpu(pid) if pid
rescue ArgumentError # when incorrect PID
end
- def childs(pid)
+ def children(pid)
if pid
@ppids[pid] ||= Eye::Sigar.proc_list("State.Ppid.eq=#{pid}")
else
[]
end