SmokeyHogey
Member
- ServUO Version
- Publish 58
- Ultima Expansion
- None
Could an admin double-check this method?
if (ticks < now) is assigns the same value,
wondering if the latter is supposed to be d = TimeSpan.MinValue;
or something else?
C#:
public override void WriteDeltaTime(DateTime value)
{
var ticks = value.Ticks;
var now = DateTime.UtcNow.Ticks;
TimeSpan d;
try
{
d = new TimeSpan(ticks - now);
}
catch (Exception ex)
{
if (ticks < now)
{
d = TimeSpan.MaxValue;
}
else
{
d = TimeSpan.MaxValue;
}
Diagnostics.ExceptionLogging.LogException(ex);
}
Write(d);
}
if (ticks < now) is assigns the same value,
wondering if the latter is supposed to be d = TimeSpan.MinValue;
or something else?