mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Completely hide GPU from Statusbar when unsupported
This commit is contained in:
parent
ee1894f6b8
commit
b443721617
@ -81,6 +81,10 @@ export default function Statusbar() {
|
||||
|
||||
const gpu = parseInt(stats.gpu);
|
||||
|
||||
if (isNaN(gpu)) {
|
||||
return;
|
||||
}
|
||||
|
||||
return (
|
||||
<Link key={gpuTitle} to="/system#general">
|
||||
{" "}
|
||||
@ -97,7 +101,7 @@ export default function Statusbar() {
|
||||
: "text-danger"
|
||||
}`}
|
||||
/>
|
||||
{gpuTitle} {isNaN(gpu) ? 'unknown' : `${gpu}%`}
|
||||
{gpuTitle} {gpu}%
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user