diff --git a/internal/repository/job.go b/internal/repository/job.go index 05d0acc..d1c54a1 100644 --- a/internal/repository/job.go +++ b/internal/repository/job.go @@ -642,7 +642,17 @@ func (r *JobRepository) UpdateFootprint( footprint := make(map[string]float64) for _, fp := range sc.Footprint { - statType := "avg" + var statType string + for _, gm := range archive.GlobalMetricList { + if gm.Name == fp { + statType = gm.Footprint + } + } + + if statType != "avg" && statType != "min" && statType != "max" { + log.Warnf("unknown statType for footprint update: %s", statType) + return stmt, fmt.Errorf("unknown statType for footprint update: %s", statType) + } if i, err := archive.MetricIndex(sc.MetricConfig, fp); err != nil { statType = sc.MetricConfig[i].Footprint diff --git a/web/frontend/src/generic/joblist/JobInfo.svelte b/web/frontend/src/generic/joblist/JobInfo.svelte index 2e71462..adacd4f 100644 --- a/web/frontend/src/generic/joblist/JobInfo.svelte +++ b/web/frontend/src/generic/joblist/JobInfo.svelte @@ -72,7 +72,7 @@ {:else}
{job.metaData.jobName}