mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-15 05:38:52 +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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<%-
|
||||
time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" }
|
||||
time_labels[0] = "within 1"
|
||||
time_labels[@count] = "#{@count}"
|
||||
time_labels[@count] = "> #{@count}"
|
||||
-%>
|
||||
&title=<%= t('stats.action_completion_time_title') %>,{font-size:16},&
|
||||
&y_legend=<%= t('stats.legend.actions') %>,10,0x8010A0&
|
||||
|
|
@ -23,4 +23,4 @@ time_labels[@count] = "#{@count}"
|
|||
&y2_lines=2&
|
||||
&y2_min=0&
|
||||
&y2_max=100&
|
||||
&x_label_style=9,,2,1&
|
||||
&x_label_style=9,,2,1&
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ url_labels[@count]=url_for(:controller => 'stats', :action => 'show_selected_act
|
|||
|
||||
time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" }
|
||||
time_labels[0] = "< 1"
|
||||
time_labels[@count] = "#{@count}"
|
||||
time_labels[@count] = "> #{@count}"
|
||||
-%>
|
||||
&title=<%= t('stats.running_time_all') %>,{font-size:16},&
|
||||
&y_legend=<%= t('stats.running_time_all_legend.actions') %>,10,0x736AFF&
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ url_labels[@count]=url_for(:controller => 'stats', :action => 'show_selected_act
|
|||
|
||||
time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" }
|
||||
time_labels[0] = "< 1"
|
||||
time_labels[@count] = "#{@count}"
|
||||
time_labels[@count] = "> #{@count}"
|
||||
-%>
|
||||
&title=<%= t('stats.current_running_time_of_incomplete_visible_actions') %>,{font-size:16},&
|
||||
&y_legend=<%= t('stats.running_time_legend.actions') %>,10,0x736AFF&
|
||||
|
|
@ -27,4 +27,4 @@ time_labels[@count] = "#{@count}"
|
|||
&show_y2=true&
|
||||
&y2_lines=2&
|
||||
&y2_min=0&
|
||||
&y2_max=100&
|
||||
&y2_max=100&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue