main: Slow down main thread to avoid taking too much CPU power

This commit is contained in:
Yuki Joou 2023-07-11 21:16:21 +02:00
parent 4fd8bf9bb8
commit f5cac7f6d9

1
main.c
View file

@ -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) {