Skip to content

Incorrect Win Percentage #201

@shk0Abdullah

Description

@shk0Abdullah

Description

The win percentage calculation is incorrect.

Current State:

var win_percentage = n_wins / (((n_wins + n_losses) * 100) || 0);

This divides wins by (total_games * 100) instead of calculating the actual percentage.
Can I create a PR for this fix?

Example

Expected: 100%
Actual: 0.01%

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions