Skip to content

Commit 8147b93

Browse files
code-inflationrobatscandit
authored andcommitted
fix: correct latency test count
1 parent edcad5b commit 8147b93

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)