Skip to content

Commit df2f58e

Browse files
committed
Fixed Daily Ideal Graph
1 parent d800a3f commit df2f58e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

VexTrack/Core/DashboardDataCalc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static LineSeries CalcDailyIdeal(LineSeries performance, bool epilogue)
5555
List<int> amounts = new();
5656
int total = GoalDataCalc.CalcTotalGoal("", TrackingDataHelper.CurrentSeasonData.ActiveBPLevel, TrackingDataHelper.CurrentSeasonData.CXP, epilogue).Total;
5757
int bufferDays = SettingsHelper.Data.BufferDays;
58-
int effectiveRemaining = TrackingDataHelper.GetRemainingDays(TrackingDataHelper.CurrentSeasonUUID) - bufferDays;
58+
int effectiveRemaining = TrackingDataHelper.GetRemainingDays(TrackingDataHelper.CurrentSeasonUUID) - bufferDays + 1;
5959
if (effectiveRemaining <= 0) effectiveRemaining = 1;
6060

6161
int remainingDays = TrackingDataHelper.GetRemainingDays(TrackingDataHelper.CurrentSeasonUUID);
@@ -157,7 +157,7 @@ public static int CalcDaysFinished(bool epilogue)
157157
for (int i = 0; i < remainingDays + 1; i++)
158158
{
159159
val += average;
160-
daysFinished = i;
160+
daysFinished++;
161161

162162
if (val >= total) break;
163163
}

0 commit comments

Comments
 (0)