Skip to content

Commit 8302129

Browse files
committed
Small fix to scheduling logic
1 parent 70d9c6a commit 8302129

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/cpp/types/node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ namespace hgraph {
578578
}
579579

580580
auto is_started{_node->is_started()};
581-
auto now_{is_scheduled_now() ? _node->graph()->evaluation_clock()->evaluation_time() : MIN_DT};
581+
auto now_{is_started ? _node->graph()->evaluation_clock()->evaluation_time() : MIN_DT};
582582
if (when > now_) {
583583
_tags[tag.value_or("")] = when;
584584
auto current_first = !_scheduled_events.empty() ? _scheduled_events.begin()->first : MAX_DT;

0 commit comments

Comments
 (0)