- status.scan(/Processed: (\d+)/).flatten.each { |count| total_requests += count.to_i }
- puts "requests.value #{total_requests}"
+
+ passenger_status.get_elements("//supergroup").map do |supergroup|
+ name = supergroup.text("name")
+ requests = 0
+
+ supergroup.get_elements("group/processes/process").each do |process|
+ requests += process.text("processed").to_i
+ end
+
+ total_requests += requests
+
+ puts "#{name}.value #{requests}"
+ end
+
+ puts "total.value #{total_requests}"