From 8fc55951ebf74416f4597bff3eb54545a8a2ab93 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 2 Feb 2022 15:00:19 -0500 Subject: [PATCH] Fix typo in tick parse fn The parsed result was being multiplied by the display_multiplier where it should have been divided by it. The parse fn is the inverse of the format fn, which multiplies by the display_multiplier --- src/client/spark_core/data/ticks/TickExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark_core/data/ticks/TickExtensions.cs b/src/client/spark_core/data/ticks/TickExtensions.cs index 50bee3cca..e5125b233 100644 --- a/src/client/spark_core/data/ticks/TickExtensions.cs +++ b/src/client/spark_core/data/ticks/TickExtensions.cs @@ -355,7 +355,7 @@ namespace mbts { return text.Length > 1 ? -_parse(tick, text[1..], display_multiplier, nan_text) : double.NaN; } if (double.TryParse(text, out var d)) { - return double.IsNaN(display_multiplier) ? d : d * display_multiplier; + return double.IsNaN(display_multiplier) ? d : d / display_multiplier; } var parts = text.Split(_separator(tick)); double integer_part = _get_integer_part(parts[0]);