Skip to content

Commit 85ac1d3

Browse files
authored
Merge pull request #1002 from cheney-lin/dev/sanityCheck
chore(*): relax sanityCheck
2 parents 662ac7f + 69245b6 commit 85ac1d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/agent/sysadvisor/plugin/qosaware/resource/cpu/region/provisionpolicy/policy_canonical.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (p *PolicyCanonical) sanityCheck() error {
8383

8484
if !ok1 && !ok2 {
8585
isLegal = false
86-
} else if ok1 && v1.Value <= 0 {
86+
} else if ok1 && v1.Value < 0 {
8787
isLegal = false
8888
} else if ok2 && v2.Value <= 0 {
8989
isLegal = false

pkg/agent/sysadvisor/plugin/qosaware/resource/cpu/region/provisionpolicy/policy_rama.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (p *PolicyRama) sanityCheck() error {
188188

189189
if !ok1 && !ok2 {
190190
isLegal = false
191-
} else if ok1 && v1.Value <= 0 {
191+
} else if ok1 && v1.Value < 0 {
192192
isLegal = false
193193
} else if ok2 && v2.Value <= 0 {
194194
isLegal = false

0 commit comments

Comments
 (0)