Skip to content

Commit 343d823

Browse files
authored
Merge pull request #2402 from Kobzol/fix-job-duration
Fix attribute casing in the status page
2 parents 50cdf2f + 0c7ebdf commit 343d823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function averageCollectorDuration(collector: CollectorConfig): string {
152152
return "Unknown";
153153
}
154154
const durationSum = collector.pastRequestDurations.reduce(
155-
(acc, req) => acc + req.job_duration_s,
155+
(acc, req) => acc + req.jobDurationS,
156156
0
157157
);
158158
const averageDuration = durationSum / collector.pastRequestDurations.length;

site/frontend/src/pages/status/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type BenchmarkJob = {
3232

3333
export type PastRequestDuration = {
3434
requestTag: String;
35-
job_duration_s: number;
35+
jobDurationS: number;
3636
};
3737

3838
export type CollectorConfig = {

0 commit comments

Comments
 (0)