wip
This commit is contained in:
parent
122d7843c7
commit
e2aac0d7ea
1 changed files with 10 additions and 7 deletions
|
@ -5,6 +5,7 @@ time = Time.local.to_s("%s%9N")
|
|||
Dir.entries(dir).each do |entry|
|
||||
entry =~ /^\d+$/ || next
|
||||
|
||||
begin
|
||||
comm = File.read("#{dir}/#{entry}/comm").chomp
|
||||
result[comm] ||= [0.to_u64, 0.to_u64]
|
||||
|
||||
|
@ -15,6 +16,8 @@ Dir.entries(dir).each do |entry|
|
|||
result[comm][1] += line.split(" ").last.to_u64
|
||||
end
|
||||
end
|
||||
rescue File::NotFoundError
|
||||
end
|
||||
end
|
||||
|
||||
result.each do |comm, (r, w)|
|
||||
|
|
Loading…
Reference in a new issue