diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp index 50c3363ffef..00b5e4011ad 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp @@ -7,6 +7,7 @@ #include "../HTTP/HTTPManager.h" #include "Common/PlayerTemplate.h" +#include "GameLogic/GameLogic.h" #include "GameNetwork/GameSpy/LadderDefs.h" #include @@ -584,6 +585,7 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep } const bool desynced = TheNetwork->sawCRCMismatch(); + const uint32_t duration = TheGameLogic->getFrame() / LOGICFRAMES_PER_SECOND; nlohmann::json j; j["buildings_built"] = buildingsBuilt; @@ -597,6 +599,7 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep j["match_id"] = currentMatchID; j["side"] = resolvedSide; j["desynced"] = desynced; + j["duration"] = duration; std::string strPostData = j.dump();