Skip to content

Commit

Permalink
Merge pull request #2669 from builder-247/builder-247-patch-1
Browse files Browse the repository at this point in the history
Change `kda` to have two decimal places
  • Loading branch information
howardchung authored Sep 12, 2023
2 parents 7f122c9 + d673df2 commit 56b645a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/compute.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function computeMatchData(pm) {
pm.deaths !== undefined &&
pm.assists !== undefined
) {
pm.kda = Math.floor((pm.kills + pm.assists) / (pm.deaths + 1));
pm.kda = Number(((pm.kills + pm.assists) / (pm.deaths + 1)).toFixed(2));
}
if (pm.leaver_status !== undefined) {
pm.abandons = Number(pm.leaver_status >= 2);
Expand Down

0 comments on commit 56b645a

Please sign in to comment.