@wrongstack/webui 0.268.0 → 0.269.0

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
@@ -25171,7 +25171,7 @@ function formatBytes(bytes) {
25171
25171
  const k = 1024;
25172
25172
  const sizes = ["B", "KB", "MB", "GB"];
25173
25173
  const i = Math.floor(Math.log(bytes) / Math.log(k));
25174
- return `${(bytes / Math.pow(k, i)).toFixed(1)} ${sizes[i]}`;
25174
+ return `${(bytes / k ** i).toFixed(1)} ${sizes[i]}`;
25175
25175
  }
25176
25176
  function formatUptime(seconds) {
25177
25177
  if (seconds < 60) return `${seconds.toFixed(0)}s`;