Skip to content

Commit

Permalink
Merge pull request kubernetes#33 from qbox/fix_cpuovercommit_1.9
Browse files Browse the repository at this point in the history
fix type mismatch
  • Loading branch information
cofyc committed May 21, 2018
2 parents eeccc53 + a1818b0 commit 55e1178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kubelet/cm/helpers_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func HugePageLimits(resourceList v1.ResourceList) map[int64]int64 {
return hugePageLimits
}

func CPUSharesAfterCPUOvercommited(shares int64, ratio float64) int64 {
shares = int64(float64(shares) / ratio)
func CPUSharesAfterCPUOvercommited(shares uint64, ratio float64) uint64 {
shares = uint64(float64(shares) / ratio)
if shares < MinShares {
return MinShares
}
Expand Down

0 comments on commit 55e1178

Please sign in to comment.