Skip to content

Commit

Permalink
Merge pull request #141 from dnd-side-project/dev
Browse files Browse the repository at this point in the history
release v0.2.8
  • Loading branch information
eun-seong authored Mar 19, 2024
2 parents e0dbd97 + 4c9abb3 commit 68f9ae5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void calculate(Statistics statistics) {
for (Legend legend : legends) {
if (totalCount == 0) {
rank.add(new RatioDto(legend.getText(), 0));
continue;
}
int percentage = (int) (legend.getCount() * 100 / totalCount);
optionPercentage += percentage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void calculate(Statistics statistics) {
for (Legend legend : legends) {
if (totalCount == 0) {
rank.add(new RatioDto(legend.getText(), 0));
continue;
}
int percentage = (int) (legend.getCount() * 100 / totalCount);
optionPercentage += percentage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void calculate(Statistics statistics) {
for (Legend legend : legends) {
if (totalCount == 0) {
rank.add(new RatioDto(legend.getText(), 0));
continue;
}
int percentage = (int) (legend.getCount() * 100 / totalCount);
optionPercentage += percentage;
Expand Down

0 comments on commit 68f9ae5

Please sign in to comment.