duuhh windows does not update lastaccesstime
parent
6a4564869b
commit
48df8869e8
|
@ -904,10 +904,18 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||||
}
|
}
|
||||||
|
|
||||||
gatherer.GatherAll();
|
gatherer.GatherAll();
|
||||||
if(gatherer.FailedUUIDs.Count > 0)
|
|
||||||
m_log.WarnFormat("[FLOTSAM ASSET CACHE] expire files IDs not found as asset:{0}", gatherer.FailedUUIDs.Count);
|
|
||||||
|
|
||||||
int count = gatherer.GatheredUuids.Count;
|
// windows does not update access time :(
|
||||||
|
int nofile = 0;
|
||||||
|
foreach(UUID id in gatherer.GatheredUuids.Keys)
|
||||||
|
{
|
||||||
|
if(!UpdateFileLastAccessTime(GetFileName(id.ToString())))
|
||||||
|
nofile++;
|
||||||
|
}
|
||||||
|
if(gatherer.FailedUUIDs.Count > 0)
|
||||||
|
m_log.WarnFormat("[FLOTSAM ASSET CACHE] expire files IDs not found as asset:{0}", gatherer.FailedUUIDs.Count + nofile);
|
||||||
|
|
||||||
|
int count = gatherer.GatheredUuids.Count - nofile;
|
||||||
gatherer.GatheredUuids.Clear();
|
gatherer.GatheredUuids.Clear();
|
||||||
gatherer.FailedUUIDs.Clear();
|
gatherer.FailedUUIDs.Clear();
|
||||||
gatherer.UncertainAssetsUUIDs.Clear();
|
gatherer.UncertainAssetsUUIDs.Clear();
|
||||||
|
|
Loading…
Reference in New Issue