yumeng преди 5 години
родител
ревизия
f583d01973
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      module-common/src/main/java/cn/com/ctop/common/module/service/impl/MaterialCutFrameServiceImpl.java

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/impl/MaterialCutFrameServiceImpl.java

@@ -116,7 +116,7 @@ public class MaterialCutFrameServiceImpl extends ServiceImpl<MaterialCutFrameMap
 
             snapshotConfig.put("OutputFile", output.toJSONString());
             // SnapshotConfig->Time
-            Integer time = ((secondDuration.intValue() - 2) / 14); // 时长 / 14 == 间隔时间
+            Integer time = ((secondDuration.intValue() - 2) / 14) + 1; // 时长 / 14 == 间隔时间
             snapshotConfig.put("Time", 2000);
             // SnapshotConfig->Interval/Num
             snapshotConfig.put("Interval", time);