Skip to content

Commit 453ce68

Browse files
committed
Show infinite rounds as such
1 parent 269c626 commit 453ce68

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,18 @@ fn main() -> ah::Result<()> {
8989
for round in args.start_round..args.rounds {
9090
if args.rounds > 1 {
9191
let tod = Local::now().format("%F %R");
92+
let end = if args.rounds == u64::MAX {
93+
"inf]".to_string()
94+
} else {
95+
format!("{})", args.rounds)
96+
};
9297
println!(
93-
"{}[{}] Round {} in range [{}, {}) ...",
98+
"{}[{}] Round {} in range [{}, {} ...",
9499
if round > args.start_round { "\n" } else { "" },
95100
tod,
96101
round,
97102
args.start_round,
98-
args.rounds
103+
end,
99104
);
100105
}
101106

0 commit comments

Comments
 (0)