[*] update these members [ns-scale stat refactoring]

This commit is contained in:
Reece Wilson 2023-05-03 13:34:41 +01:00
parent a713a110f7
commit 1ec1d4d01e

View File

@ -35,7 +35,7 @@ namespace Aurora::Logging::Sinks
std::sort(fileMeta.begin(), fileMeta.end(), [](AuPair<AuString, AuIOFS::Stat> a, AuPair<AuString, AuIOFS::Stat> 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<AuUInt64>(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<AuUInt64>(fileMeta[i].second.modifiedNs))
{
AuIOFS::Remove(baseLogPath + "/" + fileMeta[i].first);
}