diff --git a/chirpstack-concentratord-2g4/src/handler/config.rs b/chirpstack-concentratord-2g4/src/handler/config.rs index 5bd8b20..d142282 100644 --- a/chirpstack-concentratord-2g4/src/handler/config.rs +++ b/chirpstack-concentratord-2g4/src/handler/config.rs @@ -41,6 +41,9 @@ pub fn update_configuration( } // set config + if let Some(stats_interval) = new_config.stats_interval { + config.concentratord.stats_interval = stats_interval.try_into()?; + } config.gateway.config_version.clone_from(&new_config.version); config.gateway.concentrator = concentrator; diff --git a/chirpstack-concentratord-sx1301/src/handler/config.rs b/chirpstack-concentratord-sx1301/src/handler/config.rs index f2ffee2..cff35d2 100644 --- a/chirpstack-concentratord-sx1301/src/handler/config.rs +++ b/chirpstack-concentratord-sx1301/src/handler/config.rs @@ -48,6 +48,9 @@ pub fn update_configuration( } // set config + if let Some(stats_interval) = new_config.stats_interval { + config.concentratord.stats_interval = stats_interval.try_into()?; + } config .gateway .config_version diff --git a/chirpstack-concentratord-sx1302/src/handler/config.rs b/chirpstack-concentratord-sx1302/src/handler/config.rs index 2108ddd..1e58519 100644 --- a/chirpstack-concentratord-sx1302/src/handler/config.rs +++ b/chirpstack-concentratord-sx1302/src/handler/config.rs @@ -48,6 +48,9 @@ pub fn update_configuration( } // set config + if let Some(stats_interval) = new_config.stats_interval { + config.concentratord.stats_interval = stats_interval.try_into()?; + } config .gateway .config_version