From b48f54ce4ece3ac442c9b03c77c2d2bfefc3c7fe Mon Sep 17 00:00:00 2001 From: Cameron Bytheway Date: Tue, 19 Nov 2024 11:14:35 -0700 Subject: [PATCH] multiply slot_utilization by 100 --- dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs b/dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs index 34bd4b9e3..d41b043b6 100644 --- a/dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs +++ b/dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs @@ -112,7 +112,8 @@ where event::builder::AcceptorTcpLoopIterationCompleted { pending_streams: workers.working.len(), slots_idle: workers.free.len(), - slot_utilization: workers.working.len() as f32 / workers.workers.len() as f32, + slot_utilization: (workers.working.len() as f32 / workers.workers.len() as f32) + * 100.0, processing_duration: self.env.clock().get_time().saturating_duration_since(now), max_sojourn_time: workers.max_sojourn_time(), },