From 03abd5098821cd4418c36715dc0d04f809e9c2d4 Mon Sep 17 00:00:00 2001 From: zmf96 Date: Fri, 30 Jan 2026 14:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGPU=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/portal/components/server/GpuMonitorSection.tsx | 4 ++-- web/src/types/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/portal/components/server/GpuMonitorSection.tsx b/web/src/portal/components/server/GpuMonitorSection.tsx index b2a8b06..f202fa1 100644 --- a/web/src/portal/components/server/GpuMonitorSection.tsx +++ b/web/src/portal/components/server/GpuMonitorSection.tsx @@ -37,7 +37,7 @@ export const GpuMonitorSection = ({latestMetrics}: GpuMonitorSectionProps) => { - {gpu.utilization?.toFixed(1)}% + {gpu.utilization?.toFixed(1) ?? 0}%
@@ -53,7 +53,7 @@ export const GpuMonitorSection = ({latestMetrics}: GpuMonitorSectionProps) => {
功耗 - {gpu.powerDraw?.toFixed(1)}W + {gpu.powerUsage?.toFixed(1)}W
风扇转速 diff --git a/web/src/types/index.ts b/web/src/types/index.ts index 3e1c942..33eed43 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -245,7 +245,7 @@ export interface GPUMetric { memoryUsed: number; memoryFree: number; temperature: number; - powerDraw: number; + powerUsage: number; fanSpeed: number; performanceState: string; timestamp: number;