Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: cpu count not showing under cpu meter
Kyle Mendell30cab5657f79
diff --git a/frontend/src/lib/components/meter-metric.svelte b/frontend/src/lib/components/meter-metric.svelteindex 44cd7bf17..564b60fb9 100644--- a/frontend/src/lib/components/meter-metric.svelte+++ b/frontend/src/lib/components/meter-metric.svelte@@ -76,9 +76,15 @@<span class="text-muted-foreground font-medium">{percentage.toFixed(1)}%</span>- {#if showAbsoluteValues && currentValue !== undefined && maxValue !== undefined}+ {#if showAbsoluteValues}<span class="text-muted-foreground/70 font-mono text-[10px]">- {formatAbsoluteValue(currentValue)} / {formatAbsoluteValue(maxValue)}+ {#if currentValue !== undefined && maxValue !== undefined && formatAbsoluteValue}+ {#if maxValue === 100}+ {formatAbsoluteValue(0)}+ {:else}+ {formatAbsoluteValue(currentValue)} / {formatAbsoluteValue(maxValue)}+ {/if}+ {/if}</span>{/if}{/if}diff --git a/frontend/src/routes/dashboard/+page.svelte b/frontend/src/routes/dashboard/+page.svelteindex 1e5a4b428..3384abd00 100644--- a/frontend/src/routes/dashboard/+page.svelte+++ b/frontend/src/routes/dashboard/+page.svelte@@ -307,6 +307,8 @@maxValue={100}formatValue={(v) => `${v.toFixed(1)}`}loading={isLoading.loadingStats || !hasInitialStatsLoaded}+ showAbsoluteValues={true}+ formatAbsoluteValue={() => `${currentStats?.cpuCount || 0} ${m.common_cpus()}`}/><MeterMetric