Browse Source

调整间隔

yumeng 5 years ago
parent
commit
282925c07b

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

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