From f95f29092edb084d97f0a2b76f9d913a3750113d Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 15 May 2024 12:31:31 +0200 Subject: [PATCH] pince --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 3b9d432..f7b9e5c 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -211,7 +211,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) int nb = std::stoi(args[0]); - double percentage = std::stod(args[1]) / 327.670f; + double percentage = 100 - std::stod(args[1]) / 327.670f; this->percentagePanel(nb + 6, static_cast(percentage));