From 909ceb2759dd21c7e5865b5eb01ccefd6ae25052 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 1 Aug 2014 22:01:33 +0300 Subject: [PATCH] compilation erro fix --- engine/stats_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/stats_queue.go b/engine/stats_queue.go index e9b8fbf55..7d6a8a805 100644 --- a/engine/stats_queue.go +++ b/engine/stats_queue.go @@ -95,7 +95,7 @@ func (sq *StatsQueue) AppendCDR(cdr *utils.StoredCdr) { } } if strings.HasPrefix(at.ThresholdType, "*max_") { - if value, ok := stats[METRIC_TRIGGER_MAP[at.ThresholdType]] { + if value, ok := stats[METRIC_TRIGGER_MAP[at.ThresholdType]]; ok { if value >= at.ThresholdValue { at.Execute(nil, sq) }