Skip to content

Commit 8b21652

Browse files
Merge pull request #1802 from Kobzol/expected-end-fix
Fix expected date in status page
2 parents e982ff3 + 1954544 commit 8b21652

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/frontend/src/pages/status/page.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,12 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
181181
.filter(([_, reason]) => !reason.hasOwnProperty("InProgress"))
182182
.reverse();
183183
let queued_before = queued.length - 1;
184+
const currentRunEnd =
185+
current?.expected_end ?? addSeconds(new Date(), currentTimeLeft);
184186
for (const [commit, reason] of queued) {
185187
const expected_end = addSeconds(
186-
current?.expected_end ?? new Date(),
187-
currentTimeLeft + queued_before * expectedRunDuration
188+
currentRunEnd,
189+
queued_before * expectedRunDuration + expectedRunDuration
188190
);
189191
190192
let kind = commit.type;

0 commit comments

Comments
 (0)