diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/communication/vo/TrainTmsDisplay.java b/src/main/java/club/joylink/rtss/simulation/cbtc/communication/vo/TrainTmsDisplay.java index 860046809..d14e4d170 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/communication/vo/TrainTmsDisplay.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/communication/vo/TrainTmsDisplay.java @@ -153,9 +153,9 @@ public class TrainTmsDisplay { private int getTbLevelPercent(VirtualRealityTrain train) { if (train.getFk() > 0) { - return Math.min(100, (int) (train.getFk() / train.getCurrentFkMax()) * 100); + return Math.min(100, (int) ((train.getFk() / train.getCurrentFkMax()) * 100)); } else { - return -Math.min(100, (int) (train.getFb() / train.getCurrentFbMax()) * 100); + return -Math.min(100, (int) ((train.getFb() / train.getCurrentFbMax()) * 100)); } }