Skip to content

Commit

Permalink
multiply slot_utilization by 100
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Nov 19, 2024
1 parent 43e8cb7 commit b48f54c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
Expand Down

0 comments on commit b48f54c

Please sign in to comment.