diff --git a/backend/src/main/java/autoever2/cartag/service/ColorService.java b/backend/src/main/java/autoever2/cartag/service/ColorService.java index 02fb4ef..4e47579 100644 --- a/backend/src/main/java/autoever2/cartag/service/ColorService.java +++ b/backend/src/main/java/autoever2/cartag/service/ColorService.java @@ -66,7 +66,7 @@ public int getPercent(Optional count, Long boughtCount) { if (count.isEmpty()) { return 0; } - return boughtCount.intValue() * 100 / count.get().intValue(); + return (int) (boughtCount * 100 / count.get()); } public String changeUrl(String value, int index) {