We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 808b9d1 commit 8910efbCopy full SHA for 8910efb
lading/src/generator/unix_stream.rs
@@ -131,7 +131,7 @@ impl UnixStream {
131
NonZeroU32::new(config.bytes_per_second.as_u128() as u32).ok_or(Error::Zero)?;
132
// Report total load: per-connection rate * number of connections
133
let total_bytes_per_second =
134
- bytes_per_second.get() as u64 * config.parallel_connections as u64;
+ u64::from(bytes_per_second.get()) * u64::from(config.parallel_connections);
135
gauge!("bytes_per_second", &labels).set(total_bytes_per_second as f64);
136
137
let (startup, _startup_rx) = tokio::sync::broadcast::channel(1);
0 commit comments