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.
Files changed (2) hide show
  1. package/build/index.js +1 -1
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busroot-sdk",
3
- "version": "0.0.8-dev.2922257515",
3
+ "version": "0.0.8-dev.2929555090",
4
4
  "description": "An SDK for accessing Busroot from output.industries",
5
5
  "homepage": "https://www.output.industries",
6
6
  "main": "./build/index.js",