Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2390: fix condition formatting
Browse files Browse the repository at this point in the history
cwschilly committed Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
cwschilly Caleb Schilly
1 parent 83327c6 commit 0f159c0
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
@@ -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};

0 comments on commit 0f159c0

Please sign in to comment.