Commit b90c22d8 authored by vicotor's avatar vicotor

update worker info

parent 20a90af6
......@@ -103,6 +103,11 @@ func (w workerRegistry) DetailInfo() (json.RawMessage, error) {
info.CpuCore = 8
}
info.GPUModel = generateAGpuModel()
for i := 0; i < len(w.worker.info.deviceInfo.Devices); i++ {
if strings.HasPrefix(w.worker.info.deviceInfo.Devices[i].DeviceType, "gpu") {
info.GPUCount++
}
}
info.GPURam = generateAGpuRam()
ramTotal, ramUsed := generateARam()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment