Skip to content

Commit

Permalink
Merge pull request #279 from Team-Smeme/unan#278
Browse files Browse the repository at this point in the history
[FIX] 배지 획득 비율 후처리 로직 수정
  • Loading branch information
unanchoi authored May 7, 2024
2 parents c1e5ec5 + e6c0713 commit c4046ee
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


import com.smeem.batch.scheduler.support.Scheduler;
import com.smeem.common.config.ValueConfig;
import com.smeem.domain.badge.adapter.BadgeFinder;
import com.smeem.domain.badge.adapter.BadgeUpdater;
import com.smeem.domain.badge.model.Badge;
Expand Down Expand Up @@ -42,10 +41,9 @@ private float calculateBadgeAcquisitionRatio(final Badge badge) {

private float postProcess(final float point) {
if (point < 10.0f) {
return (float) Math.ceil(point);
return (float) Math.ceil(point * 2f) / 2f;
} else {
return (float) (Math.ceil(point / 10f) * 10);
}
}

}

0 comments on commit c4046ee

Please sign in to comment.