From 838ebb3f69afb3a53bbae9a21d73c2506d6e2384 Mon Sep 17 00:00:00 2001 From: Aditya Ujeniya Date: Sun, 1 Sep 2024 22:54:43 +0200 Subject: [PATCH] Updates res --- internal/graph/util.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/internal/graph/util.go b/internal/graph/util.go index 29e282c..8a6a726 100644 --- a/internal/graph/util.go +++ b/internal/graph/util.go @@ -12,7 +12,6 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/ClusterCockpit/cc-backend/internal/graph/model" "github.com/ClusterCockpit/cc-backend/internal/metricdata" - "github.com/ClusterCockpit/cc-backend/pkg/archive" "github.com/ClusterCockpit/cc-backend/pkg/log" "github.com/ClusterCockpit/cc-backend/pkg/schema" // "github.com/ClusterCockpit/cc-backend/pkg/archive" @@ -48,14 +47,14 @@ func (r *queryResolver) rooflineHeatmap( continue } - metricConfigs := archive.GetCluster(job.Cluster).MetricConfig - resolution := 0 + // metricConfigs := archive.GetCluster(job.Cluster).MetricConfig + // resolution := 0 - for _, mc := range metricConfigs { - resolution = max(resolution, mc.Timestep) - } + // for _, mc := range metricConfigs { + // resolution = max(resolution, mc.Timestep) + // } - jobdata, err := metricdata.LoadData(job, []string{"flops_any", "mem_bw"}, []schema.MetricScope{schema.MetricScopeNode}, ctx, resolution) + jobdata, err := metricdata.LoadData(job, []string{"flops_any", "mem_bw"}, []schema.MetricScope{schema.MetricScopeNode}, ctx, 0) if err != nil { log.Errorf("Error while loading roofline metrics for job %d", job.ID) return nil, err