Permalink
Browse files

Ruby 1.8.6 support

  • Loading branch information...
1 parent 73be742 commit f3caad7a2692f6f9a6bbea55304ae29173f86181 @itsderek23 itsderek23 committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 simple_process_check/simple_process_check.rb
@@ -51,7 +51,7 @@ def build_report
end
num_processes=processes_to_watch.size
- num_processes_present = process_counts.count{|count| count > 0}
+ num_processes_present = process_counts.select {|count| count > 0}.size
previous_num_processes=memory(:num_processes)
previous_num_processes_present=memory(:num_processes_present)

0 comments on commit f3caad7

Please sign in to comment.