Skip to content

Commit 370023a

Browse files
code-inflationcode-inflation
andauthored
fix: correct latency test count (#246)
Co-authored-by: code-inflation <code-inflation@github.com>
1 parent b426ed2 commit 370023a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/speedtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ pub fn run_latency_test(
156156
output_format: OutputFormat,
157157
) -> (Vec<f64>, f64) {
158158
let mut measurements: Vec<f64> = Vec::new();
159-
for i in 0..=nr_latency_tests {
159+
for i in 0..nr_latency_tests {
160160
if output_format == OutputFormat::StdOut {
161-
print_progress("latency test", i, nr_latency_tests);
161+
print_progress("latency test", i + 1, nr_latency_tests);
162162
}
163163
let latency = test_latency(client);
164164
measurements.push(latency);

0 commit comments

Comments
 (0)