diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-04-03 02:27:59 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-04-03 02:27:59 +0000 |
commit | 3c804d5e15f084cd5aec5f7184dbffc1d7350951 (patch) | |
tree | 1945fd315dd88f0c8773ac7a461f5965548a3104 /lib/mongrel/debug.rb | |
parent | 6c8d479b380ef624b6ae7a4588d37c32ffc2579e (diff) | |
download | unicorn-3c804d5e15f084cd5aec5f7184dbffc1d7350951.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@138 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/debug.rb')
-rw-r--r-- | lib/mongrel/debug.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/mongrel/debug.rb b/lib/mongrel/debug.rb index 94b906d..5beacff 100644 --- a/lib/mongrel/debug.rb +++ b/lib/mongrel/debug.rb @@ -70,11 +70,9 @@ module ObjectTracker # Strings can't be tracked easily and are so numerous that they drown out all else # so we just ignore them in the counts. ObjectSpace.each_object do |obj| - if not obj.kind_of? String - ospace << obj.object_id - counts[obj.class] ||= 0 - counts[obj.class] += 1 - end + ospace << obj.object_id + counts[obj.class] ||= 0 + counts[obj.class] += 1 end dead_objects = @active_objects - ospace |