diff --git a/engine/spls_qos.go b/engine/spls_qos.go index 6671c3a75..c6414df4e 100755 --- a/engine/spls_qos.go +++ b/engine/spls_qos.go @@ -69,10 +69,9 @@ func (lcs *QOSSupplierSorter) SortSuppliers(prflID string, suppls []*Supplier, } } if hasMetric == false { //if not have populate with default value + srtData[metric] = -1 if metric == utils.MetaPDD { srtData[metric] = 1000000 - } else { - srtData[metric] = -1 } } }