From 8dd2b82f1a5b1071c98b894d2c9085b2499ae527 Mon Sep 17 00:00:00 2001 From: Dmitry Sinyavin Date: Mon, 25 Nov 2024 15:08:44 +0100 Subject: [PATCH] Use constant worker run time --- utils/sender/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/sender/src/main.rs b/utils/sender/src/main.rs index 179b0af..7f813b6 100644 --- a/utils/sender/src/main.rs +++ b/utils/sender/src/main.rs @@ -96,7 +96,7 @@ fn main() -> Result<(), Box> { // Assume number of senders equal to TPS if not specified. let n_sender_tasks = if args.batch > 0 { args.tps / args.batch } else { args.tps }; let n_tx_sender = args.total_senders.unwrap_or(args.tps); - let worker_sleep = (1_000f64 * (n_sender_tasks as f64 / args.tps as f64)) as u64; + let worker_sleep = 1_000u64; //f64 * (n_sender_tasks as f64 / args.tps as f64)) as u64; log::info!("worker_sleep = {}", worker_sleep);