@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.cjs CHANGED
@@ -451,6 +451,10 @@ function formatBytes(value, perSecond = false) {
451
451
  scaled /= 1e3;
452
452
  unit++;
453
453
  }
454
+ if (scaled.toFixed(1) === "1000.0" && unit < BYTE_UNITS.length - 1) {
455
+ scaled /= 1e3;
456
+ unit++;
457
+ }
454
458
  return `${sign}${scaled.toFixed(1)} ${BYTE_UNITS[unit]}${suffix}`;
455
459
  }
456
460
  var HEAT_STATS = ["count", "sum", "avg", "min", "max", "median"];