From ff79550cd8bcfbce86e52ad0130c3edf12d4ce63 Mon Sep 17 00:00:00 2001 From: Matthias Einwag Date: Thu, 18 Mar 2021 20:08:33 +0000 Subject: [PATCH] Print perf_client RPS in floating point format For large requests and high latency connections the number showed 0 most of the time which isn't too helpful. --- perf/src/bin/perf_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf/src/bin/perf_client.rs b/perf/src/bin/perf_client.rs index e4d4152e7..81469aee5 100644 --- a/perf/src/bin/perf_client.rs +++ b/perf/src/bin/perf_client.rs @@ -453,8 +453,8 @@ impl Stats { println!("Overall stats:"); println!( - "RPS: {} ({} requests in {:4.2?})", - rps as usize, self.requests, dt, + "RPS: {:.2} ({} requests in {:4.2?})", + rps, self.requests, dt, ); println!( "Success rate: {:4.2}%",