From 367bd7644c851a2be48dd8200aafd14fb6ad290a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 7 Sep 2015 02:19:32 +0200 Subject: [PATCH] Small improvements. --- lib/stats/ticket_escalation.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/stats/ticket_escalation.rb b/lib/stats/ticket_escalation.rb index 8e8419295..73b85d183 100644 --- a/lib/stats/ticket_escalation.rb +++ b/lib/stats/ticket_escalation.rb @@ -23,20 +23,17 @@ class Stats::TicketEscalation state = 'supergood' if own_escalated == 0 state = 'supergood' - elsif own_escalated > 1 + elsif own_escalated <= 1 state = 'good' - elsif own_escalated > 2 + elsif own_escalated <= 4 state = 'ok' - elsif own_escalated > 5 - state = 'bad' else - state = 'superbad' + state = 'bad' end { state: state, average: average, - state: state, own: own_escalated, total: all_escalated, }