Skip to content

Commit

Permalink
Change kda to have two decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
builder-247 authored Sep 12, 2023
1 parent 7f122c9 commit d673df2
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 d673df2

Please sign in to comment.