Shorten avatar check interval, add guest log
Reduce the avatar tracking throttle from 30s to 10s to make avatar updates more responsive (update conditional and comment). Also add an informational log when the guest list becomes ready to track. No other functional changes.
This commit is contained in:
parent
27d5e29487
commit
9c5274d656
1 changed files with 6 additions and 2 deletions
|
|
@ -722,9 +722,9 @@ namespace SecondBotEvents.Services
|
|||
protected void TrackAvatarsOnParcel()
|
||||
{
|
||||
long dif = SecondbotHelpers.UnixTimeNow() - lastAvUpdate;
|
||||
if (dif < 30)
|
||||
if (dif < 10)
|
||||
{
|
||||
// only check for changes every 30 secs
|
||||
// only check for changes every 10 secs
|
||||
return;
|
||||
}
|
||||
lastAvUpdate = SecondbotHelpers.UnixTimeNow();
|
||||
|
|
@ -743,6 +743,10 @@ namespace SecondBotEvents.Services
|
|||
return;
|
||||
}
|
||||
avatarhash = hash;
|
||||
if (GuestListLoaded == false)
|
||||
{
|
||||
LogFormater.Info("OnEvent Service [Guest list ready to track]");
|
||||
}
|
||||
|
||||
if (GuestListLoaded == true)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue