Commit 3b17cc5f authored by duanruiming's avatar duanruiming

[add] 优化海信方案绿波图周期问题

parent 71a15caa
......@@ -368,7 +368,9 @@ public class HisenseGreenChartTask {
// 计算出绿灯结束时间到周期结束时间:
Integer redEndTime = cycleLen - greenEndTime;
// 通过行程时间计算周期数量
double cycleSum = Math.floor(travelTime / cycleLen) + 1;
//double cycleSum = Math.floor(travelTime / cycleLen) + 1;
// 默认三个周期
int cycleSum = 3;
for (int i = 0; i <= cycleSum; i++) {
Double cycleIndex = i * Double.valueOf(cycleLen);
// 多个周期后,需要在最后补充的时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment