From 5cebb506999aa5ef6675b665b76f5145f698658a Mon Sep 17 00:00:00 2001 From: hanxinke Date: Thu, 18 Jun 2020 16:00:24 +0800 Subject: [PATCH] atune: change memory check message from failed to suggest --- common/checker/mem_topo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/checker/mem_topo.go b/common/checker/mem_topo.go index 004b6d9..8b75dc1 100644 --- a/common/checker/mem_topo.go +++ b/common/checker/mem_topo.go @@ -166,7 +166,7 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error { } 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 } @@ -174,7 +174,8 @@ func (m *MemTopo) Check(ch chan *PB.AckCheck) error { for i := 0; i < memHalf; i++ { 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 } } -- GitLab