Skip to content

Commit

Permalink
fix: 상영 지수 오류
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmondBreez3 committed Feb 6, 2024
1 parent 12f2b58 commit cd64b64
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ private Long getScreeningRate(Screening screening) {
int count = screening.getScreeningRate();
System.out.println(count);
int total = userScreenings.size() - 1;
System.out.println(total);
if(total==0){
return (long) 0.0;
} {
return (long) ((count / total) * 100);
System.out.println((long) ((count / (double) total) * 100));
return (long) ((count / (double) total) * 100);
}
}
}

0 comments on commit cd64b64

Please sign in to comment.