mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-11-02 20:30:15 -06:00
Explicitly refuse to gather any stats if gather_stats is false or the license key is empty.
This commit is contained in:
1 parent
3f91572796
commit
0f1ff6eac0
1 file changed
+12
@@ -53,6 +53,18 @@ pub(crate) fn submit_throughput_stats(
|
||||
counter: u8,
|
||||
system_usage_actor: crossbeam_channel::Sender<tokio::sync::oneshot::Sender<SystemStats>>,
|
||||
) {
|
||||
let config = load_config();
|
||||
if config.is_err() {
|
||||
return;
|
||||
}
|
||||
let config = config.unwrap();
|
||||
if config.long_term_stats.gather_stats == false {
|
||||
return;
|
||||
}
|
||||
if config.long_term_stats.license_key.is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut metrics = LtsSubmitMetrics::new();
|
||||
let mut lts2_needs_shaped_devices = false;
|
||||
// If ShapedDevices has changed, notify the stats thread
|
||||
|
||||
Reference in new issue
Block a user