mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
Add comments to understand better the code
This commit is contained in:
committed by
Dan Christian Bogos
parent
2a77a1036c
commit
002937a166
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user