Browse Source

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

Johannes Nickel 8 years ago
parent
commit
216f36fda7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/stats/ticket_load_measure.rb
  2. 1 1
      lib/stats/ticket_reopen.rb

+ 1 - 1
lib/stats/ticket_load_measure.rb

@@ -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,

+ 1 - 1
lib/stats/ticket_reopen.rb

@@ -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,