summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-22 12:26:15 +0300
committerPaul Buetow <paul@buetow.org>2026-05-22 12:26:15 +0300
commit28c911caa58f8dda05f97b77ea8b47f26610052e (patch)
tree42278e6e9d2d249d9aadc4a9edf2e32bb8a13369 /integrationtests
parent9eef36a097be877388e059fd1183aaf9ab166ee4 (diff)
wire prefixMode from RPN into Operations for metric-aware arithmetic
Add prefixMode field to Operations struct with thread-safe Get/Set accessors, propagating the user-set prefix mode (SI/IEC) from the RPN parser through the evaluate path. - Replace all hardcoded SI arguments in convertToBase/convertFromBase calls with o.GetPrefixMode() across arithmetic, comparison, and convert operations - Cache GetPrefixMode() once per operation to avoid repeated mutex overhead - Sync r.ops.SetPrefixMode() alongside r.prefixMode in metric binary/ decimal set handlers (no deadlock: Operations.mu is separate from RPN.mu) - Update MetricShow to display factor using current prefix mode - Add SetPrefixMode to the Operator interface - Add end-to-end tests verifying prefix mode affects conversion, arithmetic, and comparison results
Diffstat (limited to 'integrationtests')
0 files changed, 0 insertions, 0 deletions