Skip to content

Commit 1de34c0

Browse files
committed
fix: add missing line cleanup for s/it progress display
1 parent 40a6a87 commit 1de34c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void pretty_progress(int step, int steps, float time) {
269269
}
270270
}
271271
progress += "|";
272-
printf(time > 1.0f ? "\r%s %i/%i - %.2fs/it" : "\r%s %i/%i - %.2fit/s\033[K",
272+
printf(time > 1.0f ? "\r%s %i/%i - %.2fs/it\033[K" : "\r%s %i/%i - %.2fit/s\033[K",
273273
progress.c_str(), step, steps,
274274
time > 1.0f || time == 0 ? time : (1.0f / time));
275275
fflush(stdout); // for linux

0 commit comments

Comments
 (0)