mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
fix: use UtcNow to date textures
This commit is contained in:
parent
44ca7ce848
commit
c78f6e1fe5
1 changed files with 2 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP
|
||||||
}
|
}
|
||||||
|
|
||||||
if (refresh && info.KeepAliveCount == 0)
|
if (refresh && info.KeepAliveCount == 0)
|
||||||
info.LastAccess = DateTime.Now;
|
info.LastAccess = DateTime.UtcNow;
|
||||||
|
|
||||||
if (info is { Wrap: not null })
|
if (info is { Wrap: not null })
|
||||||
return info;
|
return info;
|
||||||
|
|
@ -387,7 +387,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP
|
||||||
if (texInfo.Value.KeepAliveCount > 0 || texInfo.Value.Wrap == null)
|
if (texInfo.Value.KeepAliveCount > 0 || texInfo.Value.Wrap == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (DateTime.Now - texInfo.Value.LastAccess > TimeSpan.FromMilliseconds(MillisecondsEvictionTime))
|
if (DateTime.UtcNow - texInfo.Value.LastAccess > TimeSpan.FromMilliseconds(MillisecondsEvictionTime))
|
||||||
{
|
{
|
||||||
Log.Verbose("Evicting {Path} since too old", texInfo.Key);
|
Log.Verbose("Evicting {Path} since too old", texInfo.Key);
|
||||||
texInfo.Value.Wrap.Dispose();
|
texInfo.Value.Wrap.Dispose();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue