File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
site/frontend/src/pages/status Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 BenchmarkJobStatus ,
1212 isJobComplete ,
1313 BenchmarkJob ,
14+ BenchmarkJobKind ,
1415} from " ./data" ;
1516import 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
5360function 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) }}
You can’t perform that action at this time.
0 commit comments