Skip to content

Commit

Permalink
tune sync multiplier threshold (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
artfwo authored Dec 30, 2020
1 parent 5c345a3 commit 4820a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matron/src/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ bool clock_schedule_resume_sync(int coro_id, double beats) {

next_beat = (floor(this_beat / beats) + next_beat_multiplier) * beats;
next_beat_time = zero_beat_time + (next_beat * reference.beat_duration);
} while (next_beat_time - current_time < reference.beat_duration * beats / 2000);
} while (next_beat_time - current_time < reference.beat_duration * beats / 100);

pthread_mutex_unlock(&reference.lock);

Expand Down

0 comments on commit 4820a58

Please sign in to comment.