mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fix recursion trap
This commit is contained in:
parent
13660d7123
commit
a8e74e5b86
@ -243,10 +243,4 @@ public class MapLabels implements NBLabels {
|
||||
for (int i = 0; i < labelsAndValues.length; i+=2) childLabels.put(labelsAndValues[i].toString(), labelsAndValues[i + 1].toString());
|
||||
return childLabels;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public NBLabels getLabels() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ import java.util.function.Function;
|
||||
* since these elements will be consulted frequently, such as when rendering metrics values.
|
||||
* </P>
|
||||
*/
|
||||
public interface NBLabels extends NBLabeledElement {
|
||||
public interface NBLabels {
|
||||
|
||||
/**
|
||||
* Create a string representation of the label data, including only the values.
|
||||
|
@ -57,7 +57,7 @@ public class RelevancyMeasures implements NBLabeledElement {
|
||||
public RelevancyMeasures addFunction(RelevancyFunction... f) {
|
||||
for (RelevancyFunction function : f) {
|
||||
this.functions.add(function);
|
||||
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(parent.getLabels().and(function.getLabels()), function.getUniqueName());
|
||||
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(this, function.getUniqueName());
|
||||
this.gauges.add(gauge);
|
||||
}
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user