[*] update these members [ns-scale stat refactoring]
This commit is contained in:
parent
a713a110f7
commit
1ec1d4d01e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user