Skip to content

Commit

Permalink
for issue 3126,format
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-sy committed Jul 24, 2023
1 parent d4f6cff commit 94454de
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public GaugeMetricFamily(String name, String help, double value) {
super(name, Collector.Type.GAUGE, help, new ArrayList<Sample>());
labelNames = Collections.emptyList();
samples.add(new Sample(
name,
labelNames,
Collections.<String>emptyList(),
value));
name,
labelNames,
Collections.<String>emptyList(),
value));
}

public GaugeMetricFamily(String name, String help, List<String> labelNames) {
Expand All @@ -36,7 +36,7 @@ public GaugeMetricFamily addMetric(List<String> labelValues, double value, long
if (labelValues.size() != labelNames.size()) {
throw new IllegalArgumentException("Incorrect number of labels.");
}
samples.add(new Sample(name, labelNames, labelValues, value,timestampMs));
samples.add(new Sample(name, labelNames, labelValues, value, timestampMs));
return this;
}
}

0 comments on commit 94454de

Please sign in to comment.