Skip to content

Commit a38a457

Browse files
committed
Fix double value parsing in trigger expressions
1 parent 2e59555 commit a38a457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PerfView/Triggers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ public bool Succeeds(string fieldValue)
14101410
var expressionValue = Convert.ToInt64(Value);
14111411
result = -expressionValue.CompareTo(longValue); // negated because the x and y arguments are swapped.
14121412
}
1413-
else if (double.TryParse(fieldValue, System.Globalization.NumberStyles.Integer | System.Globalization.NumberStyles.AllowDecimalPoint, null, out double doubleValue))
1413+
else if (double.TryParse(fieldValue, System.Globalization.NumberStyles.Number, null, out double doubleValue))
14141414
{
14151415
var expressionValue = Convert.ToDouble(Value);
14161416
result = -expressionValue.CompareTo(doubleValue); // negated because the x and y arguments are swapped.

0 commit comments

Comments
 (0)