In --numeric mode, still call the same formatting functions, only with a different default string, and end with a newline rather than a carriage return (#127).

This commit is contained in:
Andrew Wood
2025-01-25 21:15:05 +00:00
parent 0d3b678800
commit 505a91a6ed
3 changed files with 42 additions and 108 deletions
-2
View File
@@ -509,8 +509,6 @@ int main(int argc, char **argv)
pv_state_watch_fd_set(state, opts->watch_fd);
pv_state_average_rate_window_set(state, opts->average_rate_window);
/* TODO: with --numeric, call a separate default format function. */
pv_state_set_format(state, opts->progress, opts->timer, can_have_eta ? opts->eta : false,
can_have_eta ? opts->fineta : false, opts->rate, opts->average_rate,
opts->bytes, opts->bufpercent, opts->lastwritten, opts->name);