From bdc0bfe69edb41778f3034b5f46ee8ce3b5cb0b9 Mon Sep 17 00:00:00 2001 From: mgoeppner Date: Tue, 20 Dec 2022 11:25:27 +0100 Subject: [PATCH] Fix CurrentSP estimation. --- src/EVEMon.Common/Models/QueuedSkill.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EVEMon.Common/Models/QueuedSkill.cs b/src/EVEMon.Common/Models/QueuedSkill.cs index e0ac054d1..2431026ed 100644 --- a/src/EVEMon.Common/Models/QueuedSkill.cs +++ b/src/EVEMon.Common/Models/QueuedSkill.cs @@ -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; } }