From 9f65d4ee3d0554941fe0e5e36edff5ed7126f36c Mon Sep 17 00:00:00 2001 From: Roy-Hu <80-ChienAn@users.noreply.gitlab.nems.cs.nctu.edu.tw> Date: Tue, 14 Mar 2023 07:43:53 +0000 Subject: [PATCH] fix re-sending period reports --- internal/forwarder/perio/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/forwarder/perio/server.go b/internal/forwarder/perio/server.go index dc6d16b..a5b9e8c 100644 --- a/internal/forwarder/perio/server.go +++ b/internal/forwarder/perio/server.go @@ -170,7 +170,6 @@ func (s *Server) Serve(wg *sync.WaitGroup) { } case TYPE_PERIO_TIMEOUT: var lSeidUrridsMap map[uint64][]uint32 - var rpts []report.Report perioGroup, ok := s.perioList[e.period] if !ok { @@ -196,6 +195,8 @@ func (s *Server) Serve(wg *sync.WaitGroup) { } for seid, usars := range seidUsars { + var rpts []report.Report + for i := range usars { usars[i].USARTrigger.Flags |= report.USAR_TRIG_PERIO rpts = append(rpts, usars[i])