From 6194b263f4aa93174272a2a9dd41367a1ecba36e Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 14 Aug 2025 17:09:53 +0100 Subject: fix: check disk usage of blobs directory instead of root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change df command to target FCTDRIVE_PATH/blobs for more accurate disk usage - This provides better storage metrics for the actual blob storage location 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/lib/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/storage.ts b/frontend/lib/storage.ts index a1b2949..8fae22b 100644 --- a/frontend/lib/storage.ts +++ b/frontend/lib/storage.ts @@ -30,7 +30,7 @@ export async function fetchStorageData(): Promise { // Get disk usage in bytes const fctdrivePath = Env_get_required('FCTDRIVE_PATH') - const { stdout: dfOutput } = await execAsync(`df -B1 "${fctdrivePath}"`) + const { stdout: dfOutput } = await execAsync(`df -B1 "${fctdrivePath}/blobs"`) // Parse df output - second line contains the data const lines = dfOutput.trim().split('\n') @@ -64,4 +64,4 @@ export async function fetchStorageData(): Promise { availableDisk: 0 } } -} \ No newline at end of file +} -- cgit