[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | Fix progress display (issue #339) (!391)

From: Darshit Shah
Subject: Re: [Wget-dev] wget2 | Fix progress display (issue #339) (!391)
Date: Fri, 17 Aug 2018 08:45:42 +0000

Darshit Shah started a new discussion on libwget/bar.c:

>  void wget_bar_slot_downloaded(wget_bar_t *bar, int slot, size_t nbytes)
>  {
>       wget_thread_mutex_lock(bar->mutex);
> -     bar->slots[slot].bytes_downloaded = nbytes;
> +     bar->slots[slot].bytes_downloaded += nbytes;

This is incorrect. `nbytes` here is the cumulative number of bytes downloaded, 
not the number of bytes downloaded since the last call.

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]