mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: check statistics.extended config for prometheus
This commit is contained in:
parent
07eac06a36
commit
f1d0901416
1 changed files with 4 additions and 2 deletions
|
|
@ -129,8 +129,10 @@ impl StatisticsCollector {
|
|||
);
|
||||
}
|
||||
|
||||
self.last_complete_histogram
|
||||
.update_metrics(self.ip_version.clone());
|
||||
if config.statistics.extended {
|
||||
self.last_complete_histogram
|
||||
.update_metrics(self.ip_version.clone());
|
||||
}
|
||||
}
|
||||
|
||||
let num_peers: usize = num_peers_by_worker.into_iter().sum();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue