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;