diff --git a/Source/Logging/Sinks/DirLogArchive.cpp b/Source/Logging/Sinks/DirLogArchive.cpp index 922e43ff..efc21130 100644 --- a/Source/Logging/Sinks/DirLogArchive.cpp +++ b/Source/Logging/Sinks/DirLogArchive.cpp @@ -35,7 +35,7 @@ namespace Aurora::Logging::Sinks std::sort(fileMeta.begin(), fileMeta.end(), [](AuPair a, AuPair b) { - return AuGet<1>(a).modified < AuGet<1>(b).modified; + return AuGet<1>(a).modifiedNs < AuGet<1>(b).modifiedNs; }); }; @@ -68,7 +68,7 @@ namespace Aurora::Logging::Sinks for (AuUInt i = 0; i < fileMeta.size(); i++) { - if (qwMaxTime > fileMeta[i].second.modified) + if (qwMaxTime > AuNSToMS(fileMeta[i].second.modifiedNs)) { auto path = baseLogPath + "/" + fileMeta[i].first; @@ -178,7 +178,7 @@ namespace Aurora::Logging::Sinks for (AuUInt i = 0; i < fileMeta.size(); i++) { - if (qwMaxTime > fileMeta[i].second.modified) + if (qwMaxTime > AuNSToMS(fileMeta[i].second.modifiedNs)) { AuIOFS::Remove(baseLogPath + "/" + fileMeta[i].first); }