forked from Github/frigate
Fix Statusbar rendering NaN% for unsupported GPUs (#11655)
This commit is contained in:
@@ -81,6 +81,10 @@ export default function Statusbar() {
|
||||
|
||||
const gpu = parseInt(stats.gpu);
|
||||
|
||||
if (isNaN(gpu)) {
|
||||
return;
|
||||
}
|
||||
|
||||
return (
|
||||
<Link key={gpuTitle} to="/system#general">
|
||||
{" "}
|
||||
|
||||
Reference in New Issue
Block a user