Skip to content

Commit

Permalink
Bugfix Meas wrong when Limit unit is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragnar Engnes committed Aug 28, 2023
1 parent bc9818f commit 22e1b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlyingProbeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 22e1b9c

Please sign in to comment.