core: plan the daily budget per day, start forecasts at 2 % and follow the limit week
agent-review agent review: fail
agent-review agent review: fail
The budget was the rest of the week over the time left, so each use today lowered it and a partial first day was held to a full day. Now each day of the instance has its share, its even pace and its budget. Today's budget starts from the use at the day start and does not move with today's use (D7). Forecasts start at 2 % of a window, so an early reset no longer hides them for most of a day. Limit tiles of one kind show the same rows, with placeholders that say why a value is missing. The week chart draws per-day steps and marks the instance start and reset (D8). Week token totals follow the provider's limit week and say since when, with the calendar week as fallback (D9). Refs #13
This commit is contained in:
@@ -66,8 +66,7 @@ public static partial class LimitAnalysis
|
||||
if (length > TimeSpan.FromDays(1))
|
||||
{
|
||||
var today = current.Days.FirstOrDefault(d => d.IsToday);
|
||||
days = new(current.Days, past.FirstOrDefault()?.Days ?? [], today?.Used, 100 / length.TotalDays,
|
||||
reset > now ? (100 - window.UsedPercent) / (reset - now).TotalDays : null, today?.Origin ?? UseOrigin.Measured);
|
||||
days = PlanDays(window, current, past.FirstOrDefault(), today, observations, now, zone);
|
||||
}
|
||||
return new(current, past, days);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user