提交 5cebb506 编写于 作者: H hanxinke

atune: change memory check message from failed to suggest

上级 903e43fb
...@@ -166,7 +166,7 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error { ...@@ -166,7 +166,7 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error {
} }
if memNum%(maxChannel+1) != 0 { if memNum%(maxChannel+1) != 0 {
sendChanToAdm(ch, "memory", utils.FAILD, fmt.Sprintf("memory num is %d, not recommend, recommand 8,16 or 32", memNum)) sendChanToAdm(ch, "memory", utils.SUGGEST, fmt.Sprintf("memory num is %d, not recommend, recommand 8,16 or 32", memNum))
return nil return nil
} }
...@@ -174,7 +174,8 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error { ...@@ -174,7 +174,8 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error {
for i := 0; i < memHalf; i++ { for i := 0; i < memHalf; i++ {
if memLocation[i] != memLocation[i+memHalf] { if memLocation[i] != memLocation[i+memHalf] {
sendChanToAdm(ch, "memory", utils.FAILD, fmt.Sprintf("memory location is not balanced")) sendChanToAdm(ch, "memory", utils.SUGGEST,
fmt.Sprintf("memory location is not balanced, recommand to balance memory location"))
return nil return nil
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册