Kaelan Patel 4 лет назад
Родитель
Сommit
0d3d64a1fc
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      pkg/costmodel/allocation.go

+ 2 - 0
pkg/costmodel/allocation.go

@@ -986,6 +986,8 @@ func applyGPUUsageAvg(podMap map[podKey]*Pod, resGPUUsageAvg []*prom.QueryResult
 			pod.AppendContainer(container)
 		}
 
+		// Metric represents percentages as full numbers, so scale down by factor of 100 to make consistent
+		// with other efficiency fields
 		pod.Allocations[container].GPUUsageAverage = res.Values[0].Value * 0.01
 	}
 }