Add the image push percent to the progress bar

This commit is contained in:
Joseph Schorr 2013-10-28 13:31:43 -04:00
parent 5175364e62
commit 59543a2e51

View file

@ -201,7 +201,9 @@ quayApp.directive('buildStatus', function () {
break;
case 'pushing':
return (buildInfo.current_image / buildInfo.total_images) * 100;
var imagePercentDecimal = (buildInfo.image_completion_percent / 100);
var portion = 1 / buildInfo.total_images;
return (buildInfo.current_image / buildInfo.total_images) * 100 + (portion * imagePercentDecimal);
break;
case 'complete':