diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-22 12:52:26 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-22 12:52:26 +0300 |
| commit | 17003ea83a862b0bddff13c4e5f0a66d1fda25dd (patch) | |
| tree | 8a998c80295382d298df5a750cd25f9f2b8dc2ef /integrationtests/cli_test.go | |
| parent | c22cd367c9b6edc9744701fe7f912de487ec0953 (diff) | |
fix(rpn): treat Cool values in result metric space during absorption
When Cool (Universal) absorbs into a metric, treat the Cool value as
units of the result metric, not base units.
Previously: 5 100Mbps [+] → ~110 Mbps (5 base bps is negligible)
Now: 5 100Mbps [+] → 105 Mbps (5 treated as 5 Mbps)
This makes Cool absorption intuitive: a bare number combined with a
metric-aware value is interpreted in the same unit space.
Changes:
- convertToBase now takes resultMetric param for Cool absorption
- All callers compute result metric first, then pass to convertToBase
- Updated tests to match new behavior
Diffstat (limited to 'integrationtests/cli_test.go')
0 files changed, 0 insertions, 0 deletions
