diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/mrb_section.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 2e5eb5050b..da1253e1d5 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html | |||
@@ -165,7 +165,6 @@ $(document).ready(function(){ | |||
165 | progressTimer = window.setInterval(function() { | 165 | progressTimer = window.setInterval(function() { |
166 | libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, | 166 | libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, |
167 | function(prjInfo){ | 167 | function(prjInfo){ |
168 | |||
169 | /* These two are needed because a build can be 100% and still | 168 | /* These two are needed because a build can be 100% and still |
170 | * in progress due to the fact that the % done is updated at the | 169 | * in progress due to the fact that the % done is updated at the |
171 | * start of a task so it can be doing the last task at 100% | 170 | * start of a task so it can be doing the last task at 100% |
@@ -176,18 +175,18 @@ $(document).ready(function(){ | |||
176 | for (var i in prjInfo.builds){ | 175 | for (var i in prjInfo.builds){ |
177 | var build = prjInfo.builds[i]; | 176 | var build = prjInfo.builds[i]; |
178 | 177 | ||
179 | if (build.status === "In Progress" || | 178 | if (build.outcome === "In Progress" || |
180 | $(".progress .bar").length > 0){ | 179 | $(".progress .bar").length > 0){ |
181 | /* Update the build progress */ | 180 | /* Update the build progress */ |
182 | var percentDone; | 181 | var percentDone; |
183 | 182 | ||
184 | if (build.status !== "In Progress"){ | 183 | if (build.outcome !== "In Progress"){ |
185 | /* We have to ignore the value when it's Succeeded because it | 184 | /* We have to ignore the value when it's Succeeded because it |
186 | * goes back to 0 | 185 | * goes back to 0 |
187 | */ | 186 | */ |
188 | percentDone = 100; | 187 | percentDone = 100; |
189 | } else { | 188 | } else { |
190 | percentDone = build.build[0].completeper; | 189 | percentDone = build.percentDone; |
191 | inProgress++; | 190 | inProgress++; |
192 | } | 191 | } |
193 | 192 | ||