Permalink
Browse files

processes are collected as a string not an array

  • Loading branch information...
1 parent ed42f6b commit 9359f670adca847959e1ba67db9fe0dca6a981ac Andre Lewis committed Nov 30, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scout/server.rb
View
@@ -246,8 +246,8 @@ def process_plugin(plugin)
# captures a list of processes running at this moment
def take_snapshot
info "Taking a process snapshot"
- lines=`ps aux`.split("\n")[1..-1] # get rid of the header line
- @checkin[:snapshot]=lines
+ ps=`ps aux`.split("\n")[1..-1].join("\n") # get rid of the header line
+ @checkin[:snapshot]=ps
rescue Exception
error "unable to capture processes on this server. #{$!.message}"
end

0 comments on commit 9359f67

Please sign in to comment.