Skip to content

Commit

Permalink
Show infinite rounds as such
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuesch committed Feb 13, 2024
1 parent 269c626 commit 453ce68
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,18 @@ fn main() -> ah::Result<()> {
for round in args.start_round..args.rounds {
if args.rounds > 1 {
let tod = Local::now().format("%F %R");
let end = if args.rounds == u64::MAX {
"inf]".to_string()
} else {
format!("{})", args.rounds)
};
println!(
"{}[{}] Round {} in range [{}, {}) ...",
"{}[{}] Round {} in range [{}, {} ...",
if round > args.start_round { "\n" } else { "" },
tod,
round,
args.start_round,
args.rounds
end,
);
}

Expand Down

0 comments on commit 453ce68

Please sign in to comment.