mirror of
https://github.com/upa/mscp.git
synced 2026-02-14 09:14:47 +08:00
fix miss flag handling for threads[n].finished
This commit is contained in:
@@ -546,11 +546,11 @@ void *sscp_monitor_thread(void *arg)
|
||||
}
|
||||
gettimeofday(&b, NULL);
|
||||
|
||||
sleep(1);
|
||||
usleep(500000);
|
||||
|
||||
for (n = 0; n < nr_threads; n++) {
|
||||
done += threads[n].done;;
|
||||
if (threads[n].finished)
|
||||
if (!threads[n].finished)
|
||||
all_done = false;
|
||||
}
|
||||
gettimeofday(&a, NULL);
|
||||
|
||||
Reference in New Issue
Block a user