Actually, there is a simpler way to do this
This commit is contained in:
parent
59543a2e51
commit
bb2446c45c
1 changed files with 1 additions and 2 deletions
|
@ -202,8 +202,7 @@ quayApp.directive('buildStatus', function () {
|
|||
|
||||
case 'pushing':
|
||||
var imagePercentDecimal = (buildInfo.image_completion_percent / 100);
|
||||
var portion = 1 / buildInfo.total_images;
|
||||
return (buildInfo.current_image / buildInfo.total_images) * 100 + (portion * imagePercentDecimal);
|
||||
return ((buildInfo.current_image + imagePercentDecimal) / buildInfo.total_images) * 100;
|
||||
break;
|
||||
|
||||
case 'complete':
|
||||
|
|
Reference in a new issue