diff --git a/lib/stats/ticket_in_process.rb b/lib/stats/ticket_in_process.rb index 97ede41d7..9f3178cd7 100644 --- a/lib/stats/ticket_in_process.rb +++ b/lib/stats/ticket_in_process.rb @@ -65,7 +65,7 @@ class Stats::TicketInProcess return result 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 result[:state] = 'supergood' elsif in_percent >= 65