diff --git a/config/config_defaults.go b/config/config_defaults.go index 8b544c852..20215a3ae 100755 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -484,7 +484,7 @@ const CGRATES_CFG_JSON = ` "stats": { // StatS config "enabled": false, // starts Stat service: . "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur> - "max_queue_lenght": 0, // used to compress data + "max_queue_length": 0, // used to compress data "thresholds_conns": [], // connections to ThresholdS for StatUpdates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234> "indexed_selects":true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing diff --git a/config/config_json_test.go b/config/config_json_test.go index 46c6f66a3..f5b2bef36 100755 --- a/config/config_json_test.go +++ b/config/config_json_test.go @@ -800,7 +800,7 @@ func TestDfStatServiceJsonCfg(t *testing.T) { Enabled: utils.BoolPointer(false), Indexed_selects: utils.BoolPointer(true), Store_interval: utils.StringPointer(""), - Max_queue_lenght: utils.IntPointer(0), + Max_queue_length: utils.IntPointer(0), Thresholds_conns: &[]*HaPoolJsonCfg{}, String_indexed_fields: nil, Prefix_indexed_fields: &[]string{}, diff --git a/config/libconfig_json.go b/config/libconfig_json.go index a96a750ea..ebf3704ca 100755 --- a/config/libconfig_json.go +++ b/config/libconfig_json.go @@ -437,7 +437,7 @@ type StatServJsonCfg struct { Enabled *bool Indexed_selects *bool Store_interval *string - Max_queue_lenght *int + Max_queue_length *int Thresholds_conns *[]*HaPoolJsonCfg String_indexed_fields *[]string Prefix_indexed_fields *[]string diff --git a/config/statscfg.go b/config/statscfg.go index 229870b1a..0a752937f 100644 --- a/config/statscfg.go +++ b/config/statscfg.go @@ -49,8 +49,8 @@ func (st *StatSCfg) loadFromJsonCfg(jsnCfg *StatServJsonCfg) (err error) { return err } } - if jsnCfg.Max_queue_lenght != nil { - st.MaxQueueLenght = *jsnCfg.Max_queue_lenght + if jsnCfg.Max_queue_length != nil { + st.MaxQueueLenght = *jsnCfg.Max_queue_length } if jsnCfg.Thresholds_conns != nil { st.ThresholdSConns = make([]*RemoteHost, len(*jsnCfg.Thresholds_conns)) diff --git a/data/conf/cgrates/cgrates.json b/data/conf/cgrates/cgrates.json index 7fcf229a0..c99936af1 100644 --- a/data/conf/cgrates/cgrates.json +++ b/data/conf/cgrates/cgrates.json @@ -458,7 +458,7 @@ // "stats": { // StatS config // "enabled": false, // starts Stat service: . // "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur> -// "max_queue_lenght": 0, // used to compress data +// "max_queue_length": 0, // used to compress data // "thresholds_conns": [], // connections to ThresholdS for StatUpdates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234> // "indexed_selects":true, // enable profile matching exclusively on indexes // //"string_indexed_fields": [], // query indexes based on these fields for faster processing