Skip to content

Commit

Permalink
Merge pull request #1802 from Kobzol/expected-end-fix
Browse files Browse the repository at this point in the history
Fix expected date in status page
  • Loading branch information
Mark-Simulacrum authored Jan 15, 2024
2 parents e982ff3 + 1954544 commit 8b21652
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/frontend/src/pages/status/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,12 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
.filter(([_, reason]) => !reason.hasOwnProperty("InProgress"))
.reverse();
let queued_before = queued.length - 1;
const currentRunEnd =
current?.expected_end ?? addSeconds(new Date(), currentTimeLeft);
for (const [commit, reason] of queued) {
const expected_end = addSeconds(
current?.expected_end ?? new Date(),
currentTimeLeft + queued_before * expectedRunDuration
currentRunEnd,
queued_before * expectedRunDuration + expectedRunDuration
);
let kind = commit.type;
Expand Down

0 comments on commit 8b21652

Please sign in to comment.