From eec17b10a14544132a8809a5aa236c0ea9288db2 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sun, 20 Dec 2020 17:34:55 -0600 Subject: [PATCH] update: switch back to 60-second interval --- crates/ptth_relay/src/main.rs | 2 +- crates/ptth_server/src/file_server/metrics.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ptth_relay/src/main.rs b/crates/ptth_relay/src/main.rs index 0d676da..cf2f2d9 100644 --- a/crates/ptth_relay/src/main.rs +++ b/crates/ptth_relay/src/main.rs @@ -26,7 +26,7 @@ use ptth_relay::{ async fn main () -> Result <(), Box > { fmt () .with_env_filter (EnvFilter::from_default_env ()) - .with_span_events (FmtSpan::FULL) + .with_span_events (FmtSpan::CLOSE) .init () ; diff --git a/crates/ptth_server/src/file_server/metrics.rs b/crates/ptth_server/src/file_server/metrics.rs index 458e6b6..37f6c00 100644 --- a/crates/ptth_server/src/file_server/metrics.rs +++ b/crates/ptth_server/src/file_server/metrics.rs @@ -108,7 +108,7 @@ impl Interval { use uom::si::ratio::percent; - let mut interval = tokio::time::interval (Duration::from_secs (4)); + let mut interval = tokio::time::interval (Duration::from_secs (60)); let mut counter = 0_u64; let mut next_10_time = counter;