Actually, there is a simpler way to do this

This commit is contained in:
Joseph Schorr 2013-10-28 13:33:19 -04:00
parent 59543a2e51
commit bb2446c45c

View file

@ -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':