lib/hawatel_ps/linux/proc_table.rb
def childs_tree
          @proc_table.each do |proc_parent|
            @proc_table.each do |proc_child|
              if proc_parent.pid == proc_child.ppid
                proc_parent[:childs].push(proc_child)
              end
            end
          end
        end
# Find and add childs attribute for process
#
Find and add childs attribute for process
Find and add childs attribute for process
def childs_tree
          @proc_table.each do |proc_parent|
            @proc_table.each do |proc_child|
              if proc_parent.pid == proc_child.ppid
                proc_parent[:childs].push(proc_child)
              end
            end
          end
        end
def childs_tree @proc_table . each do | proc_parent | @proc_table . each do | proc_child | if proc_parent . pid == proc_child . ppid proc_parent [ :childs ] . push ( proc_child ) end end end end
Find and add childs attribute for process
Find and add childs attribute for process