lib/tries.rb in tries-0.3.0 vs lib/tries.rb in tries-0.3.1
- old
+ new
@@ -30,9 +30,8 @@
end
private
def calculate_delay(delay, attempts, incremental)
return delay unless incremental
-
- delay * attempts
+ (delay * attempts * 100).round.to_f / 100
end
end