<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,7 +12,7 @@ CLEAN.include [ &quot;pkg&quot;, &quot;lib/*.bundle&quot;, &quot;*.gem&quot;, &quot;.config&quot;, &quot;**/*.log&quot; ]
 desc &quot;Build package&quot;
 task :default =&gt; [:package]
 
-version = &quot;1.2.1&quot;
+version = &quot;1.2.2&quot;
 name = &quot;mongrel_proctitle&quot;
 
 spec =</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,8 @@ interval = 0.25
 # the fields to show in our display (see ps -o)
 fields = &quot;pid,command&quot;
 
-# parse arguments
+# parse arguments.
+# TODO: use getoptlong
 argv = ARGV.map { |a| a.split('=', 2) }.flatten
 while argv.any?
   arg = argv.shift
@@ -67,12 +68,15 @@ def process_display(fields, interval)
   cols = terminal_columns
   processes =
     `ps axww -o #{fields}`.grep(/mongrel_rails/).map do |line|
-      line.sub! /\s+SHELL=.*$/, ''   # weird MacOS X issue
+      line.strip!
+      line.sub! /\s+SHELL=.*$/, ''                  # weird MacOS X issue
+      line.sub! /(?:ruby\d*: )?mongrel_rails /, ''  # remove $0 prefix
+      line.sub! /\(ruby\d*\)/, ''                   # remove (ruby) suffix
       line[0,cols].chomp
     end
   output = [
     (' ' * (cols - now.length)) + now + &quot;\r&quot; +
-    &quot;Mongrel Monitor (delay: #{interval})&quot;,
+    &quot;Mongrel Top (delay: #{interval})&quot;,
     &quot;&quot;,
     processes,
     &quot;&quot;,</diff>
      <filename>bin/mongrel_top</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aba6759d8a250524950fdd60fbe6be5540eddfb6</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </author>
  <url>http://github.com/rtomayko/mongrel_proctitle/commit/c8e18443bc78a6f0da6c9fe18d1b5a3362497cca</url>
  <id>c8e18443bc78a6f0da6c9fe18d1b5a3362497cca</id>
  <committed-date>2008-02-27T11:35:54-08:00</committed-date>
  <authored-date>2008-02-27T11:35:54-08:00</authored-date>
  <message>Clean up process title as reported by ps</message>
  <tree>dfa90591ff11700c651ebbc3b2a7b44b822e93c4</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
