lib/spanx/config.rb in spanx-0.1.0 vs lib/spanx/config.rb in spanx-0.1.1
- old
+ new
@@ -23,10 +23,10 @@
pause.history = self[:collector][:history]
end
if self.has_key?(:analyzer) && self[:analyzer].has_key?(:period_checks)
self[:analyzer][:period_checks].each do |check|
- Spanx::IPChecker.check check[:period_seconds].to_i, check[:max_allowed].to_i, check[:block_ttl].to_i
+ Spanx::IPChecker.check(check)
end
end
self
end