From ee1894f6b8e321f8e9096c7e5ab7ee41756d2d00 Mon Sep 17 00:00:00 2001 From: Tom B <5631509+track0x1@users.noreply.github.com> Date: Thu, 30 May 2024 14:11:00 -0400 Subject: [PATCH] Fix Statusbar rendering NaN% for unsupported GPUs --- web/src/components/Statusbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Statusbar.tsx b/web/src/components/Statusbar.tsx index 67af68af9..01a2ba225 100644 --- a/web/src/components/Statusbar.tsx +++ b/web/src/components/Statusbar.tsx @@ -97,7 +97,7 @@ export default function Statusbar() { : "text-danger" }`} /> - {gpuTitle} {gpu}% + {gpuTitle} {isNaN(gpu) ? 'unknown' : `${gpu}%`} );