diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 126d86b5..0f0fbb51 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -196,7 +196,11 @@ function setSystemInfo(devices) { function ID_TO_TEXT(d) { let info = devices.all[d] - return `${info.name} (${d}) (${info.mem_free.toFixed(1)}Gb free / ${info.mem_total.toFixed(1)} Gb total)` + if ("mem_free" in info && "mem_total" in info) { + return `${info.name} (${d}) (${info.mem_free.toFixed(1)}Gb free / ${info.mem_total.toFixed(1)} Gb total)` + } else { + return `${info.name} (${d}) (no memory info)` + } } allGPUs = allGPUs.map(ID_TO_TEXT)