孟令鑫 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包,必须顺序执行