Update frontend

This commit is contained in:
Lou Knauer 2022-04-07 12:28:09 +02:00
parent cdfa63d5ca
commit 6e9a916a18
2 changed files with 6 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3f3d1fac6b2ea88964ba357ad35688e204d82037
Subproject commit e8d82a00a4215457a57735c7d7db7076daca5643

View File

@ -66,7 +66,7 @@ func Init(jobArchivePath string, disableArchive bool) error {
return nil
}
var cache *lrucache.Cache = lrucache.New(512 * 1024 * 1024)
var cache *lrucache.Cache = lrucache.New(128 * 1024 * 1024)
// Fetches the metric data for a job.
func LoadData(job *schema.Job, metrics []string, scopes []schema.MetricScope, ctx context.Context) (schema.JobData, error) {
@ -126,8 +126,11 @@ func LoadData(job *schema.Job, metrics []string, scopes []schema.MetricScope, ct
subset[scope] = jm
}
}
if len(subset) > 0 {
perscope = subset
}
}
res[metric] = perscope
}