mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Fixing gofmt errors
This commit is contained in:
@@ -50,7 +50,7 @@ func CalculateSpreadPriority(pod api.Pod, podLister PodLister, minionLister Mini
|
||||
// than the filtered minion count
|
||||
values := make([]int, len(counts))
|
||||
idx := 0
|
||||
for _, count := range counts {
|
||||
for _, count := range counts {
|
||||
values[idx] = count
|
||||
idx++
|
||||
}
|
||||
@@ -62,7 +62,7 @@ func CalculateSpreadPriority(pod api.Pod, podLister PodLister, minionLister Mini
|
||||
//score int
|
||||
for _, minion := range minions.Items {
|
||||
if maxCount > 0 {
|
||||
fScore = 100 * ( float32(counts[minion.Name]) / float32(maxCount) )
|
||||
fScore = 100 * (float32(counts[minion.Name]) / float32(maxCount))
|
||||
}
|
||||
result = append(result, HostPriority{host: minion.Name, score: int(fScore)})
|
||||
}
|
||||
|
Reference in New Issue
Block a user