Adrien Delorme
c393ccb7ca
fix progress bar termination typo
2018-10-26 11:29:15 +02:00
Adrien Delorme
25775cd266
fix more race conditions
2018-10-15 16:31:59 +02:00
Adrien Delorme
27f4b9e4a1
pb/testing: triger more race condition by having the progress bar refresh more often
2018-10-15 15:28:46 +02:00
Adrien Delorme
4cae413a29
remove unedded atomic call ( protected by a lock )
2018-10-15 15:28:08 +02:00
Adrien Delorme
56ccba86c7
fix some race conditions
2018-10-15 13:53:59 +02:00
Adrien Delorme
611610c89d
BasicProgresssBar: protect add with a lock
...
to avoid weird race conditions.
2018-10-02 16:57:16 +02:00
Megan Marsh
3f8407d95f
Revert "Merge pull request #6700 from hashicorp/multi_progressbar"
...
This reverts commit 5470c08345
, reversing
changes made to c427486bca
.
2018-09-20 13:14:17 -07:00
Adrien Delorme
be27775a3c
start the pool only once
2018-09-12 17:04:10 -07:00
Adrien Delorme
dfeca9f0df
split progressbars per object
2018-09-12 16:21:58 -07:00
Megan Marsh
77980a7b53
fix progress bar mutex
2018-09-12 10:53:15 -07:00
Adrien Delorme
0ac7b64364
fix panic of the future using a mutex instead of some atomic calls + more docs
2018-09-06 18:12:15 +02:00
Adrien Delorme
8a851efcc8
progressbar: more godocs
2018-09-06 17:01:14 +02:00
Adrien Delorme
bb59a70e8f
progressbar: use int64 instead of uint64
...
* it's what's used for file sizes and used lib
2018-09-06 16:49:15 +02:00
Adrien Delorme
408578507f
also prefix bar with number of items processing
2018-09-06 15:53:59 +02:00
Adrien Delorme
541c68aed5
add StackableProgressBar struct that will refresh/show dl status for multiple files
...
* simplified the downloader interface, and removed the total/current values from them
* downloaders use a proxy reader that will add all read bytes to progress
* removed unused const mtu
* DownloadClient doesn't need a downloader, so I removed it too
2018-09-06 15:53:59 +02:00
Adrien Delorme
fd7cb47adc
use proxy reader for download progress & stop storing total/current in downloaders
2018-09-06 15:53:59 +02:00
Adrien Delorme
ddd96c513b
first draft at self refreshing loading bar centralized/controlled by Ui
2018-09-06 15:53:59 +02:00