Skip to content

bugfix: correct use_time_ratio min/max inversion in simple_impact_use#480

Merged
jnioche merged 1 commit intomainfrom
fix/use-time-ratio-min-max-inversion
Feb 23, 2026
Merged

bugfix: correct use_time_ratio min/max inversion in simple_impact_use#480
jnioche merged 1 commit intomainfrom
fix/use-time-ratio-min-max-inversion

Conversation

@jnioche
Copy link
Copy Markdown
Collaborator

@jnioche jnioche commented Feb 23, 2026

In simple_impact_use, the use_time_ratio uncertainty bounds were swapped: max_impact was multiplied by use_time_ratio.min and min_impact by use_time_ratio.max. Since use_time_ratio is a positive multiplier (fraction of time the device is powered on), higher values produce higher impacts. The min/max should follow the same direction as all other terms.

This bug affected ~20 device types routed through simple_impact_use: GPU, SSD, HDD, CASE, MOTHERBOARD, LAPTOP, DESKTOP, TABLET, SMARTPHONE, TELEVISION, BOX, MONITOR, VR headsets/controllers, and all IoT functional block types. It caused the reported uncertainty range (min/max) to be inverted for the use phase of these devices.

The fix aligns simple_impact_use with all other impact functions (cpu_impact_use, server_impact_use, iot_impact_use, ram_impact_use, cloud_impact_use) which correctly pair .min with .min and .max with .max.

…ct_use

In simple_impact_use, the use_time_ratio uncertainty bounds were swapped:
max_impact was multiplied by use_time_ratio.min and min_impact by
use_time_ratio.max. Since use_time_ratio is a positive multiplier
(fraction of time the device is powered on), higher values produce
higher impacts. The min/max should follow the same direction as all
other terms.

This bug affected ~20 device types routed through simple_impact_use:
GPU, SSD, HDD, CASE, MOTHERBOARD, LAPTOP, DESKTOP, TABLET, SMARTPHONE,
TELEVISION, BOX, MONITOR, VR headsets/controllers, and all IoT
functional block types. It caused the reported uncertainty range
(min/max) to be inverted for the use phase of these devices.

The fix aligns simple_impact_use with all other impact functions
(cpu_impact_use, server_impact_use, iot_impact_use, ram_impact_use,
cloud_impact_use) which correctly pair .min with .min and .max with .max.
@jnioche jnioche added the bug Something isn't working label Feb 23, 2026
@jnioche jnioche added this to the 2.0.3 milestone Feb 23, 2026
@jnioche jnioche merged commit 75639ca into main Feb 23, 2026
7 checks passed
@jnioche jnioche deleted the fix/use-time-ratio-min-max-inversion branch February 23, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants