Fix bug #18630
Perform download progress computation in floats to avoid integer overflow at around 40Mb on 32-bit architectures.
This commit is contained in:
parent
729b433554
commit
ba1d8b9f3c
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ void tnetwork_transmission::pump_monitor::process(events::pump_info&)
|
|||
}
|
||||
if(total) {
|
||||
find_widget<tprogress_bar>(&(window_.get()), "progress", false)
|
||||
.set_percentage((completed*100)/total);
|
||||
.set_percentage((completed*100.)/total);
|
||||
|
||||
std::stringstream ss;
|
||||
ss << utils::si_string(completed, true, _("unit_byte^B"))
|
||||
|
|
Loading…
Add table
Reference in a new issue