X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fprogress.c;h=2e888a90b42a722fbf479bb7a6084f61afce79b4;hp=f61c95e5bb981ace0b202223a1b5a14b4574cc82;hb=96418c68851d00fd66014d2dc7bd46b3d715e525;hpb=321b5dce853e856df342cc8bddea0dab1f7193b2 diff --git a/src/progress.c b/src/progress.c index f61c95e5..2e888a90 100644 --- a/src/progress.c +++ b/src/progress.c @@ -989,7 +989,7 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done) double dltime = hist->total_time + (dl_total_time - bp->recent_start); double dlspeed = calc_rate (dlquant, dltime, &units); sprintf (p, " %4.*f%s", dlspeed >= 99.95 ? 0 : dlspeed >= 9.995 ? 1 : 2, - dlspeed, !opt.bits_fmt?short_units[units]:short_units_bits[units]); + dlspeed, !opt.report_bps ? short_units[units] : short_units_bits[units]); move_to_end (p); } else