]> source.dussan.org Git - redmine.git/commitdiff
code format cleanup app/models/issue.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 6 Aug 2013 06:27:16 +0000 (06:27 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 6 Aug 2013 06:27:16 +0000 (06:27 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12087 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 7638088399dbe9264a11d0a8cf6d3caaec3a15fc..d04f5bd04156a24395006cbefe10047639a44c29 100644 (file)
@@ -703,7 +703,7 @@ class Issue < ActiveRecord::Base
   # Is the amount of work done less than it should for the due date
   def behind_schedule?
     return false if start_date.nil? || due_date.nil?
-    done_date = start_date + ((due_date - start_date+1)* done_ratio/100).floor
+    done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor
     return done_date <= Date.today
   end