Permalink
Browse files

Fix `work_time` method

`Tomato::DURATION` constant is expressed in seconds so `work_time`
doesn't require conversion to seconds.
  • Loading branch information...
potomak committed Jul 28, 2012
1 parent ffbb78d commit 12423f360ddd23391b3f22153e70f2313668df92
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/workable.rb
View
@@ -5,7 +5,7 @@ module Workable
WORK_TIME_FACTOR = DAYS_PER_WEEK_FACTOR * HOURS_PER_DAY_FACTOR * TOMATO_TIME_FACTOR
def work_time
- (tomatoes.count * Tomato::DURATION)*60
+ tomatoes.count * Tomato::DURATION
end
def effective_work_time

0 comments on commit 12423f3

Please sign in to comment.