@ai-ecoverse/slicc-kernel 1.116.0 → 1.116.1

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.
@@ -5361,7 +5361,7 @@ var KERNEL_VERSION, OS_RELEASE;
5361
5361
  var init_version = __esm({
5362
5362
  "src/version.ts"() {
5363
5363
  "use strict";
5364
- KERNEL_VERSION = true ? "1.116.0" : "0.0.0-dev";
5364
+ KERNEL_VERSION = true ? "1.116.1" : "0.0.0-dev";
5365
5365
  OS_RELEASE = "6.0.0-slicc";
5366
5366
  }
5367
5367
  });
package/dist/node.js CHANGED
@@ -6559,7 +6559,7 @@ function satisfies(version, range2) {
6559
6559
  }
6560
6560
 
6561
6561
  // src/version.ts
6562
- var KERNEL_VERSION = true ? "1.116.0" : "0.0.0-dev";
6562
+ var KERNEL_VERSION = true ? "1.116.1" : "0.0.0-dev";
6563
6563
  var OS_RELEASE = "6.0.0-slicc";
6564
6564
  function procVersion() {
6565
6565
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -7207,7 +7207,25 @@ function missedFires(schedule, from, until, utc = false, cap = MISSED_CAP) {
7207
7207
  count2++;
7208
7208
  }
7209
7209
  const next3 = nextFire(schedule, last, utc);
7210
- return { count: count2, last, more: next3 !== null && next3 <= until };
7210
+ if (next3 === null || next3 > until) return { count: count2, last, more: false };
7211
+ return { count: count2, last: latestFire(schedule, last, until, utc), more: true };
7212
+ }
7213
+ function latestFire(schedule, from, until, utc = false) {
7214
+ let found = from;
7215
+ for (let span = 6e4; ; span *= 2) {
7216
+ const start2 = Math.max(from, until - span);
7217
+ const first = nextFire(schedule, start2, utc);
7218
+ if (first !== null && first <= until) {
7219
+ found = first;
7220
+ break;
7221
+ }
7222
+ if (start2 === from) return from;
7223
+ }
7224
+ for (let at = nextFire(schedule, found, utc); at !== null && at <= until; ) {
7225
+ found = at;
7226
+ at = nextFire(schedule, at, utc);
7227
+ }
7228
+ return found;
7211
7229
  }
7212
7230
 
7213
7231
  // src/cron/table.ts