Skip to content

Commit

Permalink
koordlet: fix typo in function isBECPUUsageHighEnough (#1830)
Browse files Browse the repository at this point in the history
Signed-off-by: j4ckstraw <[email protected]>
  • Loading branch information
j4ckstraw committed Jan 12, 2024
1 parent 7c7a844 commit acb6926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/koordlet/qosmanager/plugins/cpuevict/cpu_evict.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ func isBECPUUsageHighEnough(beCPUMilliUsage, beCPUMilliRealLimit float64, thresh
beCPUMilliRealLimit)
return false
}
if beCPUMilliUsage < 1000 {
if beCPUMilliRealLimit < 1000 {
klog.Warningf("cpuEvict by ResourceSatisfaction: CPURealLimit %v is less than 1 core", beCPUMilliRealLimit)
return true
}
cpuUsage := beCPUMilliUsage / beCPUMilliRealLimit
Expand Down

0 comments on commit acb6926

Please sign in to comment.