From e917fdc164d5ea164e97ede2d25b621b3b5322ff Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 31 三月 2020 17:37:16 +0800 Subject: [PATCH] 增加memcpy和memmove操作,待测试 --- shmqueue.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/shmqueue.go b/shmqueue.go index 8c5b3a4..489c38e 100644 --- a/shmqueue.go +++ b/shmqueue.go @@ -164,7 +164,8 @@ var elems []ElemInfo for i := 0; i < len(eqi.EsCaches); i++ { - if eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 { + if eqi.EsCaches[i].value.PicId != -1 && eqi.EsCaches[i].value.InfoId != -1 && + eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 { elems = append(elems, eqi.EsCaches[i].value) } } -- Gitblit v1.8.0