Make the inspector work on debian (closes #4935) [Lars pind]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-05-01 17:28:55 +00:00
parent 04ef7f4be6
commit ff0b76613a

View File

@@ -18,7 +18,7 @@ class Inspector
end
def inspect
header = `#{OPTIONS[:ps] % 0}`.split("\n")[0] + "\n"
header = `#{OPTIONS[:ps] % 1}`.split("\n")[0] + "\n"
lines = pids.collect { |pid| `#{OPTIONS[:ps] % pid}`.split("\n")[1] }
puts(header + lines.join("\n"))