Skip to content

Commit

Permalink
Merge branch '1.9.x' into 1.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Nov 14, 2022
2 parents 7f42bb7 + e2e1cf4 commit dad0e30
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -562,7 +562,13 @@ private static Condition<SignalFxProtocolBuffers.DataPoint> gaugePoint(String na
private static Condition<SignalFxProtocolBuffers.DataPoint> hasValue(double value) {
return new Condition<>(point -> {
SignalFxProtocolBuffers.Datum v = point.getValue();
return v.getDoubleValue() == value || v.getIntValue() == (int) value;
if (v.hasDoubleValue()) {
return v.getDoubleValue() == value;
}
if (v.hasIntValue()) {
return v.getIntValue() == (int) value;
}
return false;
}, "Has value %s", value);
}

Expand Down

0 comments on commit dad0e30

Please sign in to comment.