Skip to content

Commit

Permalink
#2390: fix condition formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Jan 14, 2025
1 parent 60acaae commit d74fd9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/vt/runnable/runnable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,14 @@ void RunnableNew::run() {

auto getTime = [&]() {
#if vt_check_enabled(trace_enabled)
if (theTrace()) return timing::getCurrentTime();
if (theTrace()) {
return timing::getCurrentTime();
}
else
#endif
return theSched()->getRecentTime();
{
return theSched()->getRecentTime();
}
};

TimeType start_time = needs_time ? getTime() : TimeType{NAN};
Expand Down

0 comments on commit d74fd9e

Please sign in to comment.