Correctly naming *load strategy for suppliers

This commit is contained in:
TeoV
2019-08-18 17:29:26 +03:00
committed by Dan Christian Bogos
parent 58bf3cd64c
commit a27512516d
3 changed files with 1 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ import (
func NewLoadDistributionSorter(spS *SupplierService) *LoadDistributionSorter {
return &LoadDistributionSorter{spS: spS,
sorting: utils.MetaLD}
sorting: utils.MetaLoad}
}
// ResourceAscendentSorter orders suppliers based on their Resource Usage

View File

@@ -312,7 +312,6 @@ func (spS *SupplierService) statMetrics(statIDs []string, tenant string) (stsMet
provStsMetrics := make(map[string][]float64)
if spS.statS != nil {
for _, statID := range statIDs {
// check if we get an ID in the following form (StatID:MetricID)
var metrics map[string]float64
if err = spS.statS.Call(utils.StatSv1GetQueueFloatMetrics,
&utils.TenantIDWithArgDispatcher{TenantID: &utils.TenantID{Tenant: tenant, ID: statID}}, &metrics); err != nil &&

View File

@@ -465,7 +465,6 @@ const (
MetaQOS = "*qos"
MetaReas = "*reas"
MetaReds = "*reds"
MetaLD = "*ld"
Weight = "Weight"
Cost = "Cost"
RatingPlanID = "RatingPlanID"