Changed round value from 3 digits to 1 digit see issue#843

This commit is contained in:
Johannes Nickel 2017-03-15 14:49:55 +01:00
parent a8f92f6e3c
commit 216f36fda7
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ class Stats::TicketLoadMeasure
end
if total.nonzero?
load_measure_precent = ( count.to_f / (total.to_f / 100) ).round(3)
load_measure_precent = ( count.to_f / (total.to_f / 100) ).round(1)
end
{
used_for_average: load_measure_precent,

View file

@ -25,7 +25,7 @@ class Stats::TicketReopen
reopen_in_precent = 0
if total.nonzero?
reopen_in_precent = ( count.to_f / (total.to_f / 100) ).round(3)
reopen_in_precent = ( count.to_f / (total.to_f / 100) ).round(1)
end
{
used_for_average: reopen_in_precent,