Skip to content

Commit

Permalink
increased time between fleet membership checks
Browse files Browse the repository at this point in the history
removed test fleet
  • Loading branch information
BitBaboonSteve committed Jun 30, 2020
1 parent cd29c37 commit c2c694d
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions EVEData/LocalCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ private async Task UpdateFleetInfo()
if (FleetInfo.NextFleetMembershipCheck < DateTime.Now)
{
// route is cached for 60s, however checking this can hit the rate limit
FleetInfo.NextFleetMembershipCheck = DateTime.Now + TimeSpan.FromSeconds(120);
FleetInfo.NextFleetMembershipCheck = DateTime.Now + TimeSpan.FromSeconds(240);

ESI.NET.EsiResponse<ESI.NET.Models.Fleets.FleetInfo> esr = await esiClient.Fleets.FleetInfo();

Expand Down Expand Up @@ -724,51 +724,6 @@ private async Task UpdateFleetInfo()
}
}

for(int i = 0; i < 20; i++ )
{
Fleet.FleetMember fmTest1 = new Fleet.FleetMember();
fmTest1.Name = "Test Slaz FleetMember" + i;
fmTest1.Location = "Hophib";
fmTest1.ShipType = "Borg Cube";
fmTest1.IsValid = true;

Application.Current.Dispatcher.Invoke((Action)(() =>
{
FleetInfo.Members.Add(fmTest1);
}), DispatcherPriority.Normal);


}

for (int i = 0; i < 10; i++)
{
Fleet.FleetMember fmTest1 = new Fleet.FleetMember();
fmTest1.Name = "Test2 Slaz FleetMember" + i;
fmTest1.Location = "Karan";
fmTest1.ShipType = "Enterprise";
fmTest1.IsValid = true;

Application.Current.Dispatcher.Invoke((Action)(() =>
{
FleetInfo.Members.Add(fmTest1);
}), DispatcherPriority.Normal);

}

for (int i = 0; i < 5; i++)
{
Fleet.FleetMember fmTest1 = new Fleet.FleetMember();
fmTest1.Name = "Test3 Slaz FleetMember" + i;
fmTest1.Location = "Huna";
fmTest1.ShipType = "Y-Wing";
fmTest1.IsValid = true;
Application.Current.Dispatcher.Invoke((Action)(() =>
{
FleetInfo.Members.Add(fmTest1);
}), DispatcherPriority.Normal);

}

if (characterIDsToResolve.Count > 0)
{
EveManager.Instance.ResolveCharacterIDs(characterIDsToResolve).Wait();
Expand Down

0 comments on commit c2c694d

Please sign in to comment.