From 1dd1a67459425ab21433c7d3af8dfec3654fe2f2 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 14 May 2026 20:49:29 -0500 Subject: [PATCH] fix(hostinger): VPS memory/disk son MB no bytes, corregir formatBytes --- resources/views/hostinger.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/views/hostinger.html b/resources/views/hostinger.html index 26bcb3d..cd2546c 100644 --- a/resources/views/hostinger.html +++ b/resources/views/hostinger.html @@ -574,11 +574,10 @@ document.addEventListener('alpine:init', () => { this.loading = false; }, - formatBytes(bytes) { - if (!bytes || bytes === 0) return '—'; - const gb = bytes / (1024 ** 3); + formatBytes(mb) { + if (!mb || mb === 0) return '—'; + const gb = mb / 1024; if (gb >= 1) return gb.toFixed(1) + ' GB'; - const mb = bytes / (1024 ** 2); return mb.toFixed(0) + ' MB'; },