From 3377baad75ba9c5da95b8a0bf8faa19817f1cb2d Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 8 Jul 2025 14:43:29 +0300 Subject: [PATCH] update statistic is active condition --- crates/udp/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/udp/src/config.rs b/crates/udp/src/config.rs index 46c5e38..81580bf 100644 --- a/crates/udp/src/config.rs +++ b/crates/udp/src/config.rs @@ -217,11 +217,11 @@ impl StatisticsConfig { if #[cfg(feature = "prometheus")] { pub fn active(&self) -> bool { (self.interval != 0) & - (self.print_to_stdout | self.write_html_to_file | self.run_prometheus_endpoint) + (self.print_to_stdout | self.write_html_to_file | self.write_json_to_file | self.write_bin_to_file | self.run_prometheus_endpoint) } } else { pub fn active(&self) -> bool { - (self.interval != 0) & (self.print_to_stdout | self.write_html_to_file) + (self.interval != 0) & (self.print_to_stdout | self.write_html_to_file | self.write_json_to_file | self.write_bin_to_file) } } }