mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
update statistic is active condition
This commit is contained in:
parent
8a3d05fa43
commit
3377baad75
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue