@ai-ecoverse/slicc-kernel 1.98.0 → 1.98.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.
@@ -4529,7 +4529,7 @@ var KERNEL_VERSION, OS_RELEASE;
4529
4529
  var init_version = __esm({
4530
4530
  "src/version.ts"() {
4531
4531
  "use strict";
4532
- KERNEL_VERSION = true ? "1.98.0" : "0.0.0-dev";
4532
+ KERNEL_VERSION = true ? "1.98.1" : "0.0.0-dev";
4533
4533
  OS_RELEASE = "6.0.0-slicc";
4534
4534
  }
4535
4535
  });
package/dist/node.js CHANGED
@@ -11028,7 +11028,7 @@ var PATH_OPS = new Set(SYNC_FS_OPS);
11028
11028
  var EARLY_WHOLE_FILE = 64 * 1024;
11029
11029
 
11030
11030
  // src/version.ts
11031
- var KERNEL_VERSION = true ? "1.98.0" : "0.0.0-dev";
11031
+ var KERNEL_VERSION = true ? "1.98.1" : "0.0.0-dev";
11032
11032
  var OS_RELEASE = "6.0.0-slicc";
11033
11033
  function procVersion() {
11034
11034
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -11621,15 +11621,19 @@ var EpollFile = class _EpollFile {
11621
11621
  return out;
11622
11622
  }
11623
11623
  async wait(fds, max, timeoutMs, signal) {
11624
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
11624
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
11625
11625
  for (; ; ) {
11626
11626
  const events = this.collect(fds, max);
11627
- if (events.length > 0 || Date.now() >= deadline) return events;
11627
+ if (events.length > 0 || performance.now() >= deadline) return events;
11628
11628
  const round = new AbortController();
11629
11629
  const woken = this.changes.wait(AbortSignal.any([round.signal, signal]));
11630
11630
  woken.catch(() => void 0);
11631
11631
  let timer;
11632
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
11632
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
11633
+ new Promise(
11634
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
11635
+ )
11636
+ ];
11633
11637
  try {
11634
11638
  await Promise.race([woken, ...expiry]);
11635
11639
  } finally {
@@ -14088,7 +14092,7 @@ function interruption(signal) {
14088
14092
  return { promise, done: () => signal.removeEventListener("abort", fail3) };
14089
14093
  }
14090
14094
  async function selectFds(fds, read, write, timeoutMs, interrupt) {
14091
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
14095
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
14092
14096
  const interrupted3 = interruption(interrupt);
14093
14097
  interrupted3.promise.catch(() => {
14094
14098
  });
@@ -14101,14 +14105,18 @@ async function selectFds(fds, read, write, timeoutMs, interrupt) {
14101
14105
  async function waitReady(fds, read, write, deadline, interrupted3) {
14102
14106
  for (; ; ) {
14103
14107
  const now = ready(fds, read, write);
14104
- if (now.read.length > 0 || now.write.length > 0 || Date.now() >= deadline) return now;
14108
+ if (now.read.length > 0 || now.write.length > 0 || performance.now() >= deadline) return now;
14105
14109
  const round = new AbortController();
14106
14110
  const changes = [.../* @__PURE__ */ new Set([...read, ...write])].flatMap((fd) => {
14107
14111
  const file = fds.get(fd).file;
14108
14112
  return file.changed === void 0 ? [] : [file.changed(round.signal).catch(() => void 0)];
14109
14113
  });
14110
14114
  let timer;
14111
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
14115
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
14116
+ new Promise(
14117
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
14118
+ )
14119
+ ];
14112
14120
  try {
14113
14121
  await Promise.race([...changes, ...expiry, interrupted3]);
14114
14122
  } finally {