Skip to content

Commit

Permalink
555
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 29, 2024
1 parent b0f70c4 commit e37390f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (t TbRpDetail) MatchDbmSpec(spec dbmapi.DbmSpec) bool {
logger.Warn("cpu not match, dbmSpec:%+v, detail:%s", spec.SpecName, t.IP)
return false
}
if !isWithinRange(t.DramCap, spec.Mem.Min*1000, spec.Mem.Max*1000) {
if !isWithinRange(t.DramCap, int(spec.Mem.Min*1024-int(0.5*1024)), spec.Mem.Max*1024) {
logger.Warn("mem not match, dbmSpec:%+v, detail:%s", spec.SpecName, t.IP)
return false
}
Expand Down

0 comments on commit e37390f

Please sign in to comment.