孟令鑫 hai 1 ano
pai
achega
4eec944c34
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      kinglong/common/svc/rosbag_upload.go
  2. 1 1
      pji/common/svc/rosbag_upload.go

+ 1 - 1
kinglong/common/svc/rosbag_upload.go

@@ -46,7 +46,7 @@ outLoop:
 			bagNumber := len(bags)
 			if bagNumber > currentTimeWindow.Length {
 				bagNumber = currentTimeWindow.Length
-				bags = bags[0 : currentTimeWindow.Length-1]
+				bags = bags[0:currentTimeWindow.Length]
 			}
 
 			// 3 filter包,必须顺序执行

+ 1 - 1
pji/common/svc/rosbag_upload.go

@@ -44,7 +44,7 @@ outLoop:
 			bagNumber := len(bags)
 			if bagNumber > currentTimeWindow.Length {
 				bagNumber = currentTimeWindow.Length
-				bags = bags[0 : currentTimeWindow.Length-1]
+				bags = bags[0:currentTimeWindow.Length]
 			}
 
 			// 3 filter包,必须顺序执行