wget: fix progress display

function                                             old     new   delta
progress_meter                                       187     199     +12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-07-12 03:27:09 +02:00
parent d8b989f22d
commit c5bbd5d085

View File

@ -50,7 +50,7 @@ static void progress_meter(int flag)
} }
bb_progress_update(&G.pmt, G.curfile, G.beg_range, G.transferred, bb_progress_update(&G.pmt, G.curfile, G.beg_range, G.transferred,
G.chunked ? 0 : G.content_len + G.beg_range); G.chunked ? 0 : G.beg_range + G.transferred + G.content_len);
if (flag == 0) { if (flag == 0) {
/* last call to progress_meter */ /* last call to progress_meter */