This commit is contained in:
ferricles 2022-05-21 22:40:18 -07:00
commit d4b47a0f3b

View file

@ -24,7 +24,7 @@ class ComputeNode {
* Request update of this compute node. Pushes updates to children.
*/
update(timestamp) {
if (timestamp < this.update_time) {
if (timestamp <= this.update_time) {
return;
}
this.update_time = timestamp;
@ -52,6 +52,11 @@ class ComputeNode {
compute_func() {
throw "no compute func specified";
}
link_to(parent_node) {
this.inputs.push(parent_node)
parent_node.children.push(this);
}
}
/***