diff options
| author | diogo464 <[email protected]> | 2025-08-14 17:09:53 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-14 17:09:53 +0100 |
| commit | 6194b263f4aa93174272a2a9dd41367a1ecba36e (patch) | |
| tree | ac330bcd0e7a5f23efb3ea12ec9f2c2aa4661361 | |
| parent | 6c70d6a60b286f7cfbbde4e428d41c8de2c7e77a (diff) | |
fix: check disk usage of blobs directory instead of root
- 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 <[email protected]>
| -rw-r--r-- | frontend/lib/storage.ts | 4 |
1 files 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<StorageData> { | |||
| 30 | 30 | ||
| 31 | // Get disk usage in bytes | 31 | // Get disk usage in bytes |
| 32 | const fctdrivePath = Env_get_required('FCTDRIVE_PATH') | 32 | const fctdrivePath = Env_get_required('FCTDRIVE_PATH') |
| 33 | const { stdout: dfOutput } = await execAsync(`df -B1 "${fctdrivePath}"`) | 33 | const { stdout: dfOutput } = await execAsync(`df -B1 "${fctdrivePath}/blobs"`) |
| 34 | 34 | ||
| 35 | // Parse df output - second line contains the data | 35 | // Parse df output - second line contains the data |
| 36 | const lines = dfOutput.trim().split('\n') | 36 | const lines = dfOutput.trim().split('\n') |
| @@ -64,4 +64,4 @@ export async function fetchStorageData(): Promise<StorageData> { | |||
| 64 | availableDisk: 0 | 64 | availableDisk: 0 |
| 65 | } | 65 | } |
| 66 | } | 66 | } |
| 67 | } \ No newline at end of file | 67 | } |
