From 4820a58ee65c2b2d4f332fd7f7efa5dfa70ef7e1 Mon Sep 17 00:00:00 2001 From: Artem Popov Date: Wed, 30 Dec 2020 23:17:26 +0100 Subject: [PATCH] tune sync multiplier threshold (#1287) --- matron/src/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matron/src/clock.c b/matron/src/clock.c index 7fa2a3c80..cfc09255f 100644 --- a/matron/src/clock.c +++ b/matron/src/clock.c @@ -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);