compilation erro fix

This commit is contained in:
Radu Ioan Fericean
2014-08-01 22:01:33 +03:00
parent 9adebc6b10
commit 909ceb2759

View File

@@ -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)
}