From b17cdb7f77226b53eff3bad179eafbf491b3d6cf Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jun 2026 17:49:00 +1000 Subject: [PATCH] =?UTF-8?q?fix(sv):=20Backups=20card=20byte=20formatter=20?= =?UTF-8?q?=E2=80=94=20tenths=20for=20GB,=20MB=20under=201G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- package-lock.json | 4 ++-- package.json | 2 +- public/views/cards/backups.js | 5 ++++- server.js | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0622d02..6198fc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "void-server", - "version": "2.6.0", + "version": "2.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "void-server", - "version": "2.6.0", + "version": "2.6.1", "dependencies": { "@modelcontextprotocol/sdk": "^1.29.0", "@mozilla/readability": "^0.6.0", diff --git a/package.json b/package.json index 58a94aa..886a492 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "void-server", - "version": "2.6.0", + "version": "2.6.1", "type": "module", "private": true, "scripts": { diff --git a/public/views/cards/backups.js b/public/views/cards/backups.js index 94d8b61..c42e2d8 100644 --- a/public/views/cards/backups.js +++ b/public/views/cards/backups.js @@ -5,7 +5,10 @@ import { api } from '../../api.js'; let body, timer; -const gb = b => (b == null ? '–' : b >= 1e12 ? (b / 1e12).toFixed(1) + 'T' : Math.round(b / 1e9) + 'G'); +const gb = b => (b == null ? '–' + : b >= 1e12 ? (b / 1e12).toFixed(1) + 'T' + : b >= 1e9 ? (b / 1e9).toFixed(1) + 'G' + : Math.round(b / 1e6) + 'M'); function ago(ts) { const s = Math.max(0, (Date.now() - Date.parse(ts)) / 1000); if (s < 3600) return Math.floor(s / 60) + 'm'; diff --git a/server.js b/server.js index 2e4f4ca..8744227 100644 --- a/server.js +++ b/server.js @@ -15,7 +15,7 @@ import { mcpAuth } from './lib/api/middleware/mcp_auth.js'; import { handleMcp } from './lib/mcp/http.js'; import httpProxy from 'http-proxy'; -const VERSION = '2.6.0'; +const VERSION = '2.6.1'; // Proxy /terminal (+ its WebSocket) to ttyd on CT 300, so the embedded terminal // works whether the Void is reached via Traefik (void2-app.hynesy.com) OR the