mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 21:59:53 +05:00
Correctly naming *load strategy for suppliers
This commit is contained in:
committed by
Dan Christian Bogos
parent
58bf3cd64c
commit
a27512516d
@@ -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
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -465,7 +465,6 @@ const (
|
||||
MetaQOS = "*qos"
|
||||
MetaReas = "*reas"
|
||||
MetaReds = "*reds"
|
||||
MetaLD = "*ld"
|
||||
Weight = "Weight"
|
||||
Cost = "Cost"
|
||||
RatingPlanID = "RatingPlanID"
|
||||
|
||||
Reference in New Issue
Block a user