@quantumwake/terminal-ux-dashboard-components 0.1.31 → 0.1.32

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/dist/index.js CHANGED
@@ -443,6 +443,10 @@ function formatBytes(value, perSecond = false) {
443
443
  scaled /= 1e3;
444
444
  unit++;
445
445
  }
446
+ if (scaled.toFixed(1) === "1000.0" && unit < BYTE_UNITS.length - 1) {
447
+ scaled /= 1e3;
448
+ unit++;
449
+ }
446
450
  return `${sign}${scaled.toFixed(1)} ${BYTE_UNITS[unit]}${suffix}`;
447
451
  }
448
452
  var HEAT_STATS = ["count", "sum", "avg", "min", "max", "median"];