lib/rollout.rb in rolloutbr-2.0.2br vs lib/rollout.rb in rolloutbr-2.0.3br
- old
+ new
@@ -156,10 +156,10 @@
puts "force: #{force}"
puts "!@@cleared: #{!@@cleared}"
puts "Time.now: #{Time.now}"
puts "@@cleared + period: #{@@cleared + period}"
puts "Comp: #{Time.now >= (@@cleared + period)}"
- if force
+ if force || !@@cleared || Time.now >= (@@cleared + period)
puts "forced"
@@storage_hash = {}
@@cleared = Time.now
end
if @@storage_hash[feature].nil?