timestamp stored debuglog

This commit is contained in:
Kai Philipp
2019-09-09 22:18:47 +02:00
parent f6c47c053b
commit d882d4f675
3 changed files with 5 additions and 3 deletions
+4
View File
@@ -62,6 +62,7 @@
#include <boost/uuid/uuid.hpp>
#include <boost/algorithm/string.hpp>
#include <gsasl.h>
#include <ctime>
#define SERVER_MAX_NUM_LOBBY_SESSIONS 512 // Maximum number of idle users in lobby.
#define SERVER_MAX_NUM_TOTAL_SESSIONS 2000 // Total maximum of sessions, fitting a 2048 handle limit
@@ -1437,6 +1438,9 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr<SessionData> sessio
// ){
// SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED);
} else {
// @FIXME: debug only - final poition is gamestart
session->AddPlayerLastGame((unsigned long)time(NULL));
LOG_ERROR("TimeStamp stored: " << session->GetPlayerLastGames.front());
MoveSessionToGame(game, session, joinGame.autoleave(), false);
}
}
+1 -2
View File
@@ -38,8 +38,7 @@
#include <net/websocketdata.h>
#include <gsasl.h>
// #include <ctime> // @TODO: remove if really not necessary
// #include <array> // same here
#include <ctime>
using namespace std;
using boost::asio::ip::tcp;
-1
View File
@@ -35,7 +35,6 @@
#include <net/socket_msg.h>
#include <ctime>
#include <array>
using namespace std;