diff --git a/health.html b/health.html
index f8254f8..3f31830 100644
--- a/health.html
+++ b/health.html
@@ -642,6 +642,13 @@
return `${m}m`;
};
+ const formatBytes = (b) => {
+ if (!b) return "0 B";
+ const k = 1024, sizes = ["B", "KB", "MB", "GB"];
+ const i = Math.floor(Math.log(b) / Math.log(k));
+ return (b / Math.pow(k, i)).toFixed(1) + " " + sizes[i];
+ };
+
onMounted(() => {
refresh();
setInterval(refresh, 10000);