The reset history builds on #13's panel and day budgets, so its PR stacks on #15. Conflicts: D8 lists both the per-day budgets and the reset history. The weight helper from #13 now takes the instance's exclusive token end, so the day baseline counts tokens like its instance does, without the boundary hour a later instance owns (D7). Refs #14
This commit is contained in:
@@ -3,9 +3,11 @@ namespace FinalToken.Core;
|
||||
public sealed record RateForecast(double PercentPerDay, double UseAtReset, DateTimeOffset? ReachesLimit,
|
||||
double Increase = 0, TimeSpan Span = default);
|
||||
public sealed record LimitDay(DateTimeOffset Start, DateTimeOffset End, double? Used, double? Cumulative,
|
||||
bool IsToday, bool IsFuture, UseOrigin Origin = UseOrigin.Measured);
|
||||
bool IsToday, bool IsFuture, UseOrigin Origin = UseOrigin.Measured, TimeSpan Share = default, double EvenPace = 0, double? Budget = null,
|
||||
bool IsPartial = false, UseOrigin? BudgetOrigin = null);
|
||||
public sealed record WindowDays(IReadOnlyList<LimitDay> Current, IReadOnlyList<LimitDay> Previous,
|
||||
double? Today, double EvenPace, double? DailyBudget, UseOrigin TodayOrigin = UseOrigin.Measured);
|
||||
double? Today, double EvenPace, double? TodayBudget, double? LaterBudget = null, UseOrigin TodayOrigin = UseOrigin.Measured,
|
||||
UseOrigin? BudgetOrigin = null, DateTimeOffset? InstanceStart = null, DateTimeOffset? Reset = null);
|
||||
|
||||
/// <summary>Pure D7 calculations. Missing baselines use marked token estimates when calibration is available.</summary>
|
||||
public static partial class LimitAnalysis
|
||||
|
||||
Reference in New Issue
Block a user