busroot-sdk 0.0.8-dev.2922257515 → 0.0.8-dev.2929555090
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -9637,7 +9637,7 @@ var require_oee2 = __commonJS({
|
|
|
9637
9637
|
const productionScheduleLossMs = utils.subtract(scheduleMs, productionScheduleMs);
|
|
9638
9638
|
const productionScheduleRatio = utils.ratio(productionScheduleMs, productionScheduleLossMs);
|
|
9639
9639
|
const availabilityLossMs = utils.add(stationWindow.downtimeMs);
|
|
9640
|
-
const availabilityMs = utils.subtract(productionScheduleMs - availabilityLossMs);
|
|
9640
|
+
const availabilityMs = Math.max(0, utils.subtract(productionScheduleMs - availabilityLossMs));
|
|
9641
9641
|
const availabilityRatio = utils.ratio(availabilityMs, availabilityLossMs);
|
|
9642
9642
|
const performanceMs = utils.add(stationWindow.productionMs);
|
|
9643
9643
|
const performanceLossMs = Math.max(0, utils.subtract(availabilityMs - performanceMs));
|
package/package.json
CHANGED