@tangle-network/agent-app 0.60.106 → 0.60.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -758,8 +758,7 @@ function createWarmLeases(options) {
|
|
|
758
758
|
const spentToday = (row, at) => (row && row.day === utcDay(at) ? row.dayWarmMs : 0) + (row && row.pendingWarmAt > 0 && utcDay(row.pendingWarmAt) === utcDay(at) ? row.pendingMs : 0);
|
|
759
759
|
function chargeOf(row) {
|
|
760
760
|
if (!row.resumed || row.usedAt > 0 || row.warmAt <= 0) return 0;
|
|
761
|
-
|
|
762
|
-
return Math.max(row.holdUntil, lastActivity + boxIdleMs) - row.warmAt;
|
|
761
|
+
return Math.max(row.warmAt, row.pingAt) + boxIdleMs - row.warmAt;
|
|
763
762
|
}
|
|
764
763
|
async function signal(key, reason) {
|
|
765
764
|
const at = now();
|
|
@@ -3131,4 +3130,4 @@ export {
|
|
|
3131
3130
|
isTerminalPromptEvent,
|
|
3132
3131
|
detectInteractiveQuestion
|
|
3133
3132
|
};
|
|
3134
|
-
//# sourceMappingURL=chunk-
|
|
3133
|
+
//# sourceMappingURL=chunk-OGDEUCNW.js.map
|