Commit edc75cd5 authored by Janet Kuo's avatar Janet Kuo

Fix the bug that determining guaranteed qos won't work well with small numbers

parent 2e5aeaff
......@@ -35,7 +35,7 @@ func isResourceGuaranteed(container *api.Container, resource api.ResourceName) b
if !hasReq || !hasLimit {
return false
}
return req.Value() == limit.Value() && req.Value() != 0
return req.Cmp(limit) == 0 && req.Value() != 0
}
// isResourceBestEffort returns true if the container's resource requirements are best-effort.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment