Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix(studio): derive disk percentage from displayed usage (#9021)

YUAN Donga14ce8452b0e
diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsx
index 26bc782f828..2f2706f1c0a 100644
--- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx
@@ -242,6 +242,7 @@ export function ResourcesTab() {
const diskTotal = systemInfo.disk?.total_gb ?? 0;
const diskFree = systemInfo.disk?.free_gb ?? 0;
const diskUsed = Math.max(0, diskTotal - diskFree);
+ const diskPercent = diskTotal > 0 ? (diskUsed / diskTotal) * 100 : 0;
const vramTotal = aggregateGpuMemoryTotalGb(devices);
// null usage = unknown (e.g. Windows ROCm perf counter); 0 would fabricate a
// total, so the device's own row stays unknown. The host figure can still be
@@ -275,6 +276,7 @@ export function ResourcesTab() {
diskTotal,
diskFree,
diskUsed,
+ diskPercent,
vramTotal,
vramUsed,
vramFree,
@@ -431,7 +433,7 @@ export function ResourcesTab() {
detail={t("settings.resources.liveMonitor.free", {
value: formatGb(metrics.diskFree),
})}
- percent={systemInfo.disk?.percent_used ?? 0}
+ percent={metrics.diskPercent}
/>
<MetricTile
label={t("settings.resources.liveMonitor.vram")}