yumeng 5 gadi atpakaļ
vecāks
revīzija
f583d01973

+ 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);