From 848c468d40d0e8abf242d4a2f4a226ba40fb8575 Mon Sep 17 00:00:00 2001 From: Alvin Pergens Date: Wed, 20 Apr 2022 15:23:22 +0200 Subject: [PATCH] Fix WinPercentage --- RocketStats/Managements/VarsManagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RocketStats/Managements/VarsManagement.cpp b/RocketStats/Managements/VarsManagement.cpp index 02374556..e521a48a 100644 --- a/RocketStats/Managements/VarsManagement.cpp +++ b/RocketStats/Managements/VarsManagement.cpp @@ -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"; }