Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Trained Models: fix
NaN
in a progress bar during the download …
…task initialization (elastic#201221) ## Summary When we request a status of the download task right after initializing a download, `total_parts` might be returned with a `0` value, hence dividing by 0 for the progress bar causing in `NaN%` value rendered. This PR adds a fallback to `-1` for that, to make sure we render 0%. ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information