udp statistics: improve peer client reporting

- fix prometheus peer id prefix reporting
- don't report peer id prefix in html output (current method
  was incorrect and output would become huge)
This commit is contained in:
Joakim Frostegård 2023-06-07 12:58:41 +02:00
parent 4ff65cc6bd
commit 08b28c9e1b
3 changed files with 33 additions and 30 deletions

View file

@ -2,7 +2,6 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use std::time::Instant;
use crossbeam_channel::Receiver;
use hdrhistogram::Histogram;
use num_format::{Locale, ToFormattedString};
use serde::Serialize;