孟令鑫 1 年之前
父節點
當前提交
4eec944c34
共有 2 個文件被更改,包括 2 次插入2 次删除
  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包,必须顺序执行