Pārlūkot izejas kodu

record StatsCapture entry lastLogTime to database

Signed-off-by: Sven Hwang <[email protected]>
Sven Hwang 3 gadi atpakaļ
vecāks
revīzija
1c1de9089b

+ 2 - 2
Code/Tools/AssetProcessor/native/utilities/StatsCapture.cpp

@@ -196,8 +196,8 @@ namespace AssetProcessor
                     AzToolsFramework::AssetDatabase::StatDatabaseEntry entry;
                     entry.m_statName = statName;
                     entry.m_statValue = aznumeric_cast<AZ::s64>(operationDuration.count());
-                    entry.m_lastLogTime = 1; // TODO: change to real time
-                    m_dbConnection.ReplaceStat(entry); // TODO: check this succeeds
+                    entry.m_lastLogTime = aznumeric_cast<AZ::s64>(QDateTime::currentMSecsSinceEpoch());
+                    m_dbConnection.ReplaceStat(entry);
                 }
             }
             return operationDurationInMillisecond;