From f5cac7f6d9bcbfe6162aa99f053e0cdd896c16ef Mon Sep 17 00:00:00 2001 From: Yuki Joou Date: Tue, 11 Jul 2023 21:16:21 +0200 Subject: [PATCH] main: Slow down main thread to avoid taking too much CPU power --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 9509da6..81250ab 100644 --- a/main.c +++ b/main.c @@ -38,6 +38,7 @@ int main(int, char**) struct miix_wlr_state* state = miix_wlr_init(); for (;;) { + thrd_sleep(&(struct timespec){0, 10000000UL}, NULL); if (!monitor->data_is_ready) continue; if (base_station_detector && base_station_detector->is_connected) {