mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-01 07:35:38 +02:00
Formatting for mem free
This commit is contained in:
parent
8707f88c07
commit
64ff1ecbb6
@ -196,7 +196,7 @@ function setSystemInfo(devices) {
|
|||||||
|
|
||||||
function ID_TO_TEXT(d) {
|
function ID_TO_TEXT(d) {
|
||||||
let info = devices.all[d]
|
let info = devices.all[d]
|
||||||
return `${info.name} (${d}) (${info.mem_free.toFixed(1)}Gb free / ${info.mem_total.toFixed(1)} Gb total)`
|
return `${info.name} <small>(${d}) (${info.mem_free.toFixed(1)}Gb free / ${info.mem_total.toFixed(1)} Gb total)</small>`
|
||||||
}
|
}
|
||||||
|
|
||||||
allGPUs = allGPUs.map(ID_TO_TEXT)
|
allGPUs = allGPUs.map(ID_TO_TEXT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user