fix(bundle): strict 30-day boundary in pruneHistory to match src/pure.js
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
function pruneHistory(entries, now) {
|
function pruneHistory(entries, now) {
|
||||||
const cutoff = (now || Date.now()) - THIRTY_DAYS_MS;
|
const cutoff = (now || Date.now()) - THIRTY_DAYS_MS;
|
||||||
return entries.filter((e) => e.ts >= cutoff);
|
return entries.filter((e) => e.ts > cutoff);
|
||||||
}
|
}
|
||||||
|
|
||||||
function computeEstimate(current, target, perTrain, perDay) {
|
function computeEstimate(current, target, perTrain, perDay) {
|
||||||
|
|||||||
Reference in New Issue
Block a user