fix miss flag handling for threads[n].finished

This commit is contained in:
Ryo Nakamura
2022-10-25 00:04:59 +09:00
parent 8d7e6fe016
commit 7ca4a85b76

View File

@@ -546,11 +546,11 @@ void *sscp_monitor_thread(void *arg)
} }
gettimeofday(&b, NULL); gettimeofday(&b, NULL);
sleep(1); usleep(500000);
for (n = 0; n < nr_threads; n++) { for (n = 0; n < nr_threads; n++) {
done += threads[n].done;; done += threads[n].done;;
if (threads[n].finished) if (!threads[n].finished)
all_done = false; all_done = false;
} }
gettimeofday(&a, NULL); gettimeofday(&a, NULL);