From 002937a1664ff98d1c63307ba07eb10d5e407abe Mon Sep 17 00:00:00 2001 From: TeoV Date: Mon, 25 Feb 2019 15:21:41 +0200 Subject: [PATCH] Add comments to understand better the code --- engine/suppliers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/suppliers.go b/engine/suppliers.go index 37f3328da..9d507f1a2 100644 --- a/engine/suppliers.go +++ b/engine/suppliers.go @@ -325,7 +325,9 @@ func (spS *SupplierService) populateSortingData(ev *utils.CGREvent, spl *Supplie return nil, false, err } } - //check if we + //check if the supplier have the metric from sortingParameters + //in case that the metric don't exist + //we use 10000000 for *pdd and -1 for others for _, metric := range extraOpts.sortingParameters { if val, hasMetric := metricSupp[metric]; !hasMetric { switch metric {