Skip to content

Commit

Permalink
poudriere.js: Fix progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
fel1x-developer committed Mar 12, 2024
1 parent f1a4879 commit 7375866
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/share/poudriere/html/assets/poudriere.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,17 @@ function updateCanvas(stats) {
height -= 2;
/* Start at 1 and save 1 for border */
width -= 1;
x = 1;
context.fillStyle = '#E3E3E3';
context.fillRect(1, 1, width, height);
context.lineWidth = 1;
context.strokeStyle = 'black';
context.stroke();
x += minidraw(x, height, width, context, "#00CC00", queued, built);
x += minidraw(x, height, width, context, "#E00000", queued, failed);
x += minidraw(x, height, width, context, "#FF9900", queued, ignored);
x += minidraw(x, height, width, context, "#228B22", queued, fetched);
x += minidraw(x, height, width, context, "#CC6633", queued, skipped);

pctdone = ((queued - remaining) * 100) / queued;
if (Number.isNaN(pctdone)) {
Expand Down

0 comments on commit 7375866

Please sign in to comment.