fix small regressions

This commit is contained in:
Reinier Balt 2012-01-20 23:50:27 +01:00
parent 7af2211479
commit bc7bf459db
5 changed files with 8 additions and 8 deletions

View file

@ -682,7 +682,7 @@ class StatsController < ApplicationController
end
def interpolate_avg(set, percent)
return (set[0]*percent + set[1] + set[2]) / 3.0
return (set[0]*(1/percent) + set[1] + set[2]) / 3.0
end
def correct_last_two_months(month_data, count)
@ -698,4 +698,4 @@ class StatsController < ApplicationController
return avg_done, avg_created
end
end
end