Skip to content

Commit a9a4541

Browse files
authored
fix loading for limitviolations (#160)
Signed-off-by: Etienne LESOT <[email protected]>
1 parent 4a2f188 commit a9a4541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gridsuite/securityanalysis/server/entities/AbstractLimitViolationEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public abstract class AbstractLimitViolationEntity {
6060

6161
public static Double computeLoading(LimitViolation limitViolation) {
6262
return LimitViolationType.CURRENT.equals(limitViolation.getLimitType())
63-
? (100 * limitViolation.getValue()) / (limitViolation.getLimit() * limitViolation.getLimitReduction())
63+
? 100 * limitViolation.getValue() / limitViolation.getLimit()
6464
: null;
6565
}
6666
}

0 commit comments

Comments
 (0)