Minor bug fixes, code perfomance and clarity improvements #5

Merged
p.vanderwilt merged 7 commits from dev-Pieter into main 2025-11-12 09:27:38 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2b37163a8a - Show all commits

View File

@@ -31,7 +31,7 @@
enableLog: { value: false }, enableLog: { value: false },
logLevel: { value: "error" }, logLevel: { value: "error" },
positionVsParent: { value: "" }, positionVsParent: { value: "" }
}, },
inputs: 1, inputs: 1,
outputs: 3, outputs: 3,

View File

@@ -203,7 +203,7 @@ class Reactor {
* Update the reactor state based on the new time. * Update the reactor state based on the new time.
* @param {number} newTime - New time to update reactor state to, in milliseconds since epoch. * @param {number} newTime - New time to update reactor state to, in milliseconds since epoch.
*/ */
updateState(newTime = Date.now()) { // expect update with timestamp updateState(newTime) { // expect update with timestamp
if (this.upstreamReactor) { if (this.upstreamReactor) {
this.setInfluent = this.upstreamReactor.getEffluent[0]; // grab main effluent upstream reactor this.setInfluent = this.upstreamReactor.getEffluent[0]; // grab main effluent upstream reactor
} }