Skip to content

Commit

Permalink
initial tweak to address #42
Browse files Browse the repository at this point in the history
  • Loading branch information
chad-klumb authored Jun 13, 2021
1 parent 398c8a1 commit d532a3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/changestats_lasttoggle.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ static inline int ElapsedTimeToggle(Vertex tail, Vertex head, StoreTimeAndLastto
// if we're toggling this dyad *off* then we can safely use ElapsedTime
return ElapsedTime(tail, head, dur_inf);
}
if(!dur_inf->ticktock) {
// outside of ticktock, we should use ordinary ElapsedTime
return ElapsedTime(tail, head, dur_inf);
}

// otherwise we're toggling this dyad *on*
TailHead dyad = TH(tail, head);
Expand Down

0 comments on commit d532a3b

Please sign in to comment.