diff --git a/lib/scheduler.cc b/lib/scheduler.cc index 02b612bf..e4de650b 100644 --- a/lib/scheduler.cc +++ b/lib/scheduler.cc @@ -461,10 +461,9 @@ void Scheduler::schedule_sync(BaseAction* action, const Tag& tag) { log_.debug() << "Schedule action " << action->fqn() << (action->is_logical() ? " synchronously " : " asynchronously ") << " with tag " << tag; reactor_assert(logical_time_ < tag); - if(action->container()){ + if (action->container() != 0) { tracepoint(reactor_cpp, schedule_action, action->container()->fqn(), action->name(), tag); - } - else{ + } else { tracepoint(reactor_cpp, schedule_action, action->environment()->name(), action->name(), tag); } Statistics::increment_scheduled_actions();