mirror of
https://github.com/libretro/RetroArch
synced 2025-03-16 16:21:15 +00:00
Merge pull request #12671 from QuarkTheAwesome/http-progress-fix
(task_http.c) Fix progress indication for large files on 32-bit systems
This commit is contained in:
commit
21cf6b89a8
@ -133,7 +133,7 @@ static int task_http_iterate_transfer(retro_task_t *task)
|
||||
task_set_progress(task, (signed)(pos * 100 / tot));
|
||||
else
|
||||
/* but invert the logic if it would cause an overflow */
|
||||
task_set_progress(task, MAX((signed)pos / (tot / 100), 100));
|
||||
task_set_progress(task, MIN((signed)pos / (tot / 100), 100));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user