Skip to content

Commit 87576ce

Browse files
committed
Shorten compiletime to just compile
1 parent ac23782 commit 87576ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
BenchmarkJobStatus,
1212
isJobComplete,
1313
BenchmarkJob,
14+
BenchmarkJobKind,
1415
} from "./data";
1516
import CommitSha from "./commit-sha.vue";
1617
@@ -49,6 +50,12 @@ function formatJobStatus(status: BenchmarkJobStatus): string {
4950
return "Unknown";
5051
}
5152
}
53+
function formatJobKind(kind: BenchmarkJobKind): string {
54+
if (kind === "compiletime") {
55+
return "compile";
56+
}
57+
return kind;
58+
}
5259
5360
function ActiveStatus({collector}: {collector: CollectorConfig}) {
5461
const now = new Date();
@@ -206,7 +213,7 @@ function timeSince(timestamp: string): string {
206213
<td>
207214
{{ formatISODate(job.completedAt) }}
208215
</td>
209-
<td>{{ job.kind }}</td>
216+
<td>{{ formatJobKind(job.kind) }}</td>
210217
<td>{{ formatBackend(job) }}</td>
211218
<td>
212219
{{ formatProfile(job) }}

0 commit comments

Comments
 (0)