mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
fix small regressions
This commit is contained in:
parent
7af2211479
commit
bc7bf459db
5 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue