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));