Small fix

This commit is contained in:
edwardro22
2017-08-09 22:16:11 +03:00
parent ae54392a85
commit 602fb59aab
11 changed files with 46 additions and 46 deletions

8
engine/tp_reader.go Normal file → Executable file
View File

@@ -54,7 +54,7 @@ type TpReader struct {
aliases map[string]*Alias
resLimits map[string]*utils.TPResourceLimit
stats map[string]*utils.TPStats
thresholds map[string]*utils.TPThresholdCfg
thresholds map[string]*utils.TPThreshold
revDests,
revAliases,
@@ -128,7 +128,7 @@ func (tpr *TpReader) Init() {
tpr.derivedChargers = make(map[string]*utils.DerivedChargers)
tpr.resLimits = make(map[string]*utils.TPResourceLimit)
tpr.stats = make(map[string]*utils.TPStats)
tpr.thresholds = make(map[string]*utils.TPThresholdCfg)
tpr.thresholds = make(map[string]*utils.TPThreshold)
tpr.revDests = make(map[string][]string)
tpr.revAliases = make(map[string][]string)
tpr.acntActionPlans = make(map[string][]string)
@@ -1626,11 +1626,11 @@ func (tpr *TpReader) LoadStats() error {
}
func (tpr *TpReader) LoadThresholdsFiltered(tag string) error {
tps, err := tpr.lr.GetTPThresholdCfg(tpr.tpid, tag)
tps, err := tpr.lr.GetTPThreshold(tpr.tpid, tag)
if err != nil {
return err
}
mapTHs := make(map[string]*utils.TPThresholdCfg)
mapTHs := make(map[string]*utils.TPThreshold)
for _, th := range tps {
mapTHs[th.ID] = th
}