Skip to content
Closed
16 changes: 16 additions & 0 deletions src/bin/cql-stress-scylla-bench/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,22 @@ impl ScyllaBenchArgs {
println!("Mode:\t\t\t {}", show_mode(&self.mode));
println!("Workload:\t\t {}", show_workload(&self.workload));
println!("Timeout:\t\t {}", format_duration(self.timeout));
if self.max_consecutive_errors_per_op == u64::MAX {
println!("Max error number at row: unlimited");
} else {
println!(
"Max error number at row: {}",
self.max_consecutive_errors_per_op as u128 + 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This +1 could be removed after removing sub(1)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, there's no \t in this particular print, is this intentional?

);
}
if self.max_errors_in_total == u64::MAX {
println!("Max error number:\t unlimited");
} else {
println!(
"Max error number:\t {}",
self.max_errors_in_total as u128 + 1,
);
}
println!(
"Consistency level:\t {}",
show_consistency_level(&self.consistency_level)
Expand Down