Files
AIHostingTycoon/apps/web/src/store
josh b7d23c8872
CI / build-and-push (push) Successful in 38s
Fix Fill Capacity exceeding DC slot limit due to double-counted failed racks
computeRacksFailed was incremented on production failure and never decremented
when repaired racks came back online, while repair cohorts also tracked the
same racks. This caused usedSlots to inflate past the DC capacity over time.

Fix: derive computeRacksFailed from repair cohorts each tick instead of
maintaining it as a running counter. Include repair cohorts in pipeline slot
accounting so all racks are counted exactly once. Also fixes power limit in
fillDCToCapacity to only count online racks (pipeline racks don't draw power).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-25 00:00:46 -04:00
..