Skip to content

Commit

Permalink
Fix CurrentSP estimation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoeppner committed Dec 20, 2022
1 parent 726bac1 commit bdc0bfe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/EVEMon.Common/Models/QueuedSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ public int CurrentSP
{
get
{
int estimatedSP = (int)(EndSP - EndTime.Subtract(DateTime.UtcNow).TotalHours *
SkillPointsPerHour);
var estimatedSP = (int)(StartSP + (DateTime.UtcNow.Subtract(StartTime).TotalHours * SkillPointsPerHour));
return IsTraining ? Math.Max(estimatedSP, StartSP) : StartSP;
}
}
Expand Down

0 comments on commit bdc0bfe

Please sign in to comment.