Skip to content

Commit 11d255f

Browse files
committed
Fix duration of days in graph title for the detail chart
1 parent 8ec0c8c commit 11d255f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/frontend/src/pages/compare/compile/table/benchmark-detail.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ async function renderGraph(
222222
223223
function getGraphTitle() {
224224
const {start, end, date} = graphRange.value;
225-
const msg = `${DAY_RANGE} day history`;
225+
const days = daysBetweenDates(new Date(start), new Date(end));
226+
const msg = `${days} day history`;
226227
if (date !== null) {
227228
return `${msg} (${start} → ${end})`;
228229
} else {

0 commit comments

Comments
 (0)