Browse Source

提交更新。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.4.1^2
zouap 3 years ago
parent
commit
1a3b0ad9b6
2 changed files with 1 additions and 10 deletions
  1. +0
    -9
      routers/repo/cloudbrain.go
  2. +1
    -1
      templates/repo/cloudbrain/show.tmpl

+ 0
- 9
routers/repo/cloudbrain.go View File

@@ -447,15 +447,6 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo
}
}

if gpuInfos == nil {
json.Unmarshal([]byte(setting.GpuTypes), &gpuInfos)
}
for _, tmp := range gpuInfos.GpuInfo {
if tmp.Queue == task.GpuQueue {
ctx.Data["gpu_type"] = tmp.Value
}
}

if result != nil {
jobRes, _ := models.ConvertToJobResultPayload(result.Payload)
jobRes.Resource.Memory = strings.ReplaceAll(jobRes.Resource.Memory, "Mi", "MB")


+ 1
- 1
templates/repo/cloudbrain/show.tmpl View File

@@ -335,7 +335,7 @@ td, th {

<td class="ti-text-form-content">
<div class="text-span text-span-w">
{{$.gpu_type}}
{{$.resource_type}}
</div>
</td>
</tr>


Loading…
Cancel
Save