From 8adcab6f926eabdd719cb67276d7a0e0bb72b3af Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Thu, 6 May 2010 20:11:05 -0400 Subject: [PATCH] b=17382 obdfilter-survey gives unreasonably high numbers Wait for all threads to complete when running test_brw. i=andreas.dilger i=oleg.drokin --- lustre/utils/obd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index 0479315..2c043e8 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -543,8 +543,7 @@ static void shmem_snap(int total_threads, int live_threads) (prev_time.tv_sec + prev_time.tv_usec / 1000000.0); if (prev_valid && - live_threads == total_threads && - secs > 0.0) /* someone screwed with the time? */ + secs > 1.0) /* someone screwed with the time? */ printf("%d/%d Total: %f/second\n", non_zero, total_threads, total / secs); memcpy(counter_snapshot[1], counter_snapshot[0], @@ -725,7 +724,7 @@ int jt_opt_threads(int argc, char **argv) thread = i; argv[2] = "--device"; - return jt_opt_device(argc - 2, argv + 2); + exit(jt_opt_device(argc - 2, argv + 2)); } else if (be_verbose(verbose, NULL, i, &next_thread, threads)) printf("%s: thread #%d (PID %d) started\n", argv[0], i, rc); -- 1.8.3.1