yumeng %!s(int64=5) %!d(string=hai) anos
pai
achega
f351edc622

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

@@ -118,7 +118,7 @@ public class MaterialCutFrameServiceImpl extends ServiceImpl<MaterialCutFrameMap
             // SnapshotConfig->Time
             //   Integer time = ((secondDuration.intValue() - 2) / 14) + 1; // 时长 / 14 == 间隔时间
 
-            double num = (double) secondDuration / 15;
+            double num = (double) (secondDuration - 2) / 15;
             long rint = Math.round(num);
             log.info("相隔时间数:{}", rint);
             snapshotConfig.put("Time", 2000);