From 55449d3a678328b2b59b7c62d4e5029dc2a98bf3 Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Fri, 5 Feb 2021 09:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=99=E9=97=B4=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E9=97=B4=E8=AE=A1=E7=AE=97=E9=A2=84=E8=AE=A1?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E6=97=B6=E9=97=B4=E6=9C=89=E6=97=B6=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/ATS/service/AtsPlanService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/AtsPlanService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/AtsPlanService.java index 11230c68a..c17f975c7 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/AtsPlanService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/AtsPlanService.java @@ -383,12 +383,12 @@ public class AtsPlanService { if (Objects.equals(train.getPlanStandTrack(), nextStationPlan.getSection().getCode())) { return; } else { - long runningTime = ChronoUnit.SECONDS.between(stationPlan.getLeaveTime(), nextStationPlan.getArriveTime()); + long planTime = ChronoUnit.SECONDS.between(stationPlan.getLeaveTime(), nextStationPlan.getArriveTime()); + long runningTime = planTime; if (estimatedLeaveTime != null) { runningTime = ChronoUnit.SECONDS.between(estimatedLeaveTime, nextStationPlan.getArriveTime()); } - long planTime = ChronoUnit.SECONDS.between(stationPlan.getLeaveTime(), nextStationPlan.getArriveTime()); if (runningTime > planTime * 2) { runningTime = planTime * 2; }