From 22e1b9c5158fbffa36213bc0373a4693cae3d0f8 Mon Sep 17 00:00:00 2001 From: Ragnar Engnes Date: Mon, 28 Aug 2023 17:06:33 +0200 Subject: [PATCH] Bugfix Meas wrong when Limit unit is used --- FlyingProbeConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlyingProbeConverter.cs b/FlyingProbeConverter.cs index 353dab8..775e710 100644 --- a/FlyingProbeConverter.cs +++ b/FlyingProbeConverter.cs @@ -137,7 +137,7 @@ protected override bool ProcessMatchedLine(TextConverterBase.SearchFields.Search measUnit[0] == 'K' ? 1000 : measUnit[0] == 'M' ? 1000000 : measUnit[0] == 'U' ? 0.000001 : measUnit[0] == 'N' ? 0.000000001 : 1; double factorRef = refUnit.Length <= 1 ? 1 : refUnit[0] == 'K' ? 1000 : refUnit[0] == 'M' ? 1000000 : refUnit[0] == 'U' ? 0.000001 : refUnit[0] == 'N' ? 0.000000001 : 1; - double factorAdjustMeasWith = factorMeas * factorRef; + double factorAdjustMeasWith = factorMeas / factorRef; measure = measure * factorAdjustMeasWith; measUnit = refUnit; }