fix(bundle): strict 30-day boundary in pruneHistory to match src/pure.js
This commit is contained in:
1 parent
adc8a5dec9
commit
e21582b7c4
1 file changed
+1
-1
@@ -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