lib/sidekiq/prometheus/exporter/standard.rb in sidekiq-prometheus-exporter-0.1.11 vs lib/sidekiq/prometheus/exporter/standard.rb in sidekiq-prometheus-exporter-0.1.12
- old
+ new
@@ -44,10 +44,10 @@
memo[queue] = now - oldest_execution['run_at']
end
end
def total_workers
- Sidekiq::ProcessSet.new.map { |process| process['concurrency'] }.reduce(:+)
+ Sidekiq::ProcessSet.new.map { |process| process['concurrency'].to_i }.reduce(0, :+)
end
end
end
end
end