wget: fix progress display
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Jul 2010 01:27:09 +0000 (03:27 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Jul 2010 01:27:09 +0000 (03:27 +0200)
function                                             old     new   delta
progress_meter                                       187     199     +12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c

index f55b68a385d3aa29b2c02ae47628ed83fac8e526..1f35f8b035a8067eaa5b8d13f4487b6d86303280 100644 (file)
@@ -50,7 +50,7 @@ static void progress_meter(int flag)
        }
 
        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) {
                /* last call to progress_meter */