summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2010-08-31 22:55:41 -0800
committerRyan Davis <ryand@zenspider.com>2010-08-31 22:55:41 -0800
commit0a8fe80d66b4b2393bedf1a93f00e8cdecaae59e (patch)
treeed2807ddc988bbd13281875be2dba961e955fb19
parent462fda01d14c9ca16e86957bf0b871e2dc76889b (diff)
downloadhoe-0a8fe80d66b4b2393bedf1a93f00e8cdecaae59e.tar.gz
- Fixed timebomb to bottom out properly on the end value
[git-p4: depot-paths = "//src/hoe/dev/": change = 5829]
-rw-r--r--lib/hoe.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hoe.rb b/lib/hoe.rb
index 262db30..b18937c 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -596,7 +596,7 @@ class Hoe
rest = (finis - Time.now)
full = (finis - start)
- ((n - m) * rest / full).to_i + m
+ [((n - m) * rest / full).to_i + m, m].max
end
##