'progress' is kind of jumpy
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
The command progress may show a simple progress bar within the terminal. Compared to the percentage values (which step with *0,*2,*5,*7,*0) the bar itself seems to step with *0,*5,*0 although enough bar elements are available to follow the value stepping.
The issue only occurs, if the progress bar is defined to cover a small iteration range. In this case, the value to be displayed by the progress bar is calculated using integer division and therefore truncates to *0 and *5. Change this to use the actual ratio.
Tested manually. No deviations detected.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r1135]
Diff: