This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
forked from mitchellh/ioprogress
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DrawTextFormatBar: nonsensical numbers could cause a panic
If one of the numbers provided to draw the progress bar was nonsensical, like the total download size being 0, the library would cause a panic. This adds a check for a unexpected current progress, and will display an empty bar if it's outside acceptable bounds.
- Loading branch information
Derek Gonyeo
committed
Oct 7, 2015
1 parent
d7ae39d
commit a9d1979
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters