From 72d5041cc614afb929f8078db467ed80dc9b72f4 Mon Sep 17 00:00:00 2001 From: lrbalt Date: Thu, 3 Apr 2008 18:21:36 +0000 Subject: [PATCH] changed avg values from integer to float values with one decimal precision. As suggested by Steven Aerts in #683 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@789 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/stats/_actions.rhtml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tracks/app/views/stats/_actions.rhtml b/tracks/app/views/stats/_actions.rhtml index a0fa9d56..ef9bd930 100755 --- a/tracks/app/views/stats/_actions.rhtml +++ b/tracks/app/views/stats/_actions.rhtml @@ -2,10 +2,10 @@ The Max-/minimum days to complete is <%= (@actions_max_ttc*10).round/10.0%>/<%= (@actions_min_ttc*10).round/10.0 %>. The minimum time to complete is <%= @actions_min_ttc_sec %>

-

In the last 30 days you created on average <%=@sum_actions_created_last30days/30%> actions -and completed on average <%=@sum_actions_done_last30days/30%> actions per day. -In the last 12 months you created on average <%=@sum_actions_created_last12months/12 %> actions -and completed on average <%=@sum_actions_done_last12months/12%> actions per month.

+

In the last 30 days you created on average <%=(@sum_actions_created_last30days*10.0/30.0).round/10.0 %> actions +and completed on average <%=(@sum_actions_done_last30days*10.0/30.0).round/10.0%> actions per day. +In the last 12 months you created on average <%=(@sum_actions_created_last12months*10.0/12.0).round/10.0 %> actions +and completed on average <%= (@sum_actions_done_last12months*10.0/12.0).round/10.0%> actions per month.

<% %w{ actions_done_last30days_data actions_done_last12months_data