Change footprint variabel from bool to string

The footprint variable also indicates the type of statistic used now
This commit is contained in:
2024-07-20 08:59:07 +02:00
parent b6f011c669
commit 721b6b2afa
7 changed files with 29 additions and 29 deletions

View File

@@ -84,9 +84,9 @@ func initClusterConfig() error {
newMetric.LowerIsBetter = cfg.LowerIsBetter
sc.MetricConfig = append(sc.MetricConfig, *newMetric)
if newMetric.Footprint {
if newMetric.Footprint != "" {
sc.Footprint = append(sc.Footprint, newMetric.Name)
ml.Footprint = true
ml.Footprint = newMetric.Footprint
}
if newMetric.Energy {
sc.EnergyFootprint = append(sc.EnergyFootprint, newMetric.Name)
@@ -96,7 +96,7 @@ func initClusterConfig() error {
availability.SubClusters = append(availability.SubClusters, sc.Name)
sc.MetricConfig = append(sc.MetricConfig, *newMetric)
if newMetric.Footprint {
if newMetric.Footprint != "" {
sc.Footprint = append(sc.Footprint, newMetric.Name)
}
if newMetric.Energy {