Fixed calculation of average state.
This commit is contained in:
parent
9c4ca4b7d6
commit
93559feecf
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Stats::TicketInProcess
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
in_percent = ( result[:used_for_average].to_f / (result[:total].to_f/100) ).round(1)
|
in_percent = ( result[:used_for_average].to_f / (result[:average_per_agent].to_f/100) ).round(1)
|
||||||
if in_percent >= 90
|
if in_percent >= 90
|
||||||
result[:state] = 'supergood'
|
result[:state] = 'supergood'
|
||||||
elsif in_percent >= 65
|
elsif in_percent >= 65
|
||||||
|
|
Loading…
Reference in a new issue