Skip to content

Commit

Permalink
Fix metric list calculation
Browse files Browse the repository at this point in the history
Change-Id: Ib177fa44273b14bf7c398baeda84083a42b394a5
  • Loading branch information
rudi committed Apr 24, 2024
1 parent 39d56c1 commit 8dc30cf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ public class AMPLGenerator {
* Generate the app's metric list.
*/
public static List<String> getMetricList(NebulousApp app) {
List<String> metrics = new ArrayList<>();
app.getRawMetrics().forEach((k, v) -> metrics.add(k));
app.getCompositeMetrics().forEach((k, v) -> metrics.add(k));
return metrics;
return new ArrayList<>(usedMetrics(app));
}

/**
Expand Down

0 comments on commit 8dc30cf

Please sign in to comment.