static void tftp_progress_done(void) { if (is_bb_progress_inited(&G.pmt)) { tftp_progress_update(); bb_putchar_stderr('\n'); bb_progress_free(&G.pmt); } }
static void progress_meter(int flag) { if (option_mask32 & WGET_OPT_QUIET) return; if (flag == PROGRESS_START) bb_progress_init(&G.pmt, G.curfile); bb_progress_update(&G.pmt, G.beg_range, G.transferred, (G.chunked || !G.got_clen) ? 0 : G.beg_range + G.transferred + G.content_len ); if (flag == PROGRESS_END) { bb_progress_free(&G.pmt); bb_putchar_stderr('\n'); G.transferred = 0; } }