Skip to content

Commit

Permalink
Fix WinPercentage
Browse files Browse the repository at this point in the history
  • Loading branch information
Arubinu committed Apr 20, 2022
1 parent 8d12d20 commit 848c468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RocketStats/Managements/VarsManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ std::string RocketStats::VarWinPercentage(bool write, bool force, bool default_v
int total = (tstats.win + tstats.loss);

if (total)
tmp = Utils::FloatFixer((float(tstats.win) / float(total * 100.f)), (rs_enable_float ? 2 : 0));
tmp = Utils::FloatFixer((float(tstats.win) / float(total) * 100.f), (rs_enable_float ? 2 : 0));
else
tmp = "N/A";
}
Expand Down

0 comments on commit 848c468

Please sign in to comment.