r22579: disable progress printing in the build-farm
[sfrench/samba-autobuild/.git] / source4 / torture / raw / lockbench.c
index 4dbefd5d9b1d63fce2f9e36e12f5b6a41755f9a6..3d02e0f5c4a192453cff60c812713446915130f9 100644 (file)
@@ -171,8 +171,11 @@ BOOL torture_bench_lock(struct torture_context *torture)
                for (i=0;i<nprocs;i++) {
                        total += state[i].count;
                }
                for (i=0;i<nprocs;i++) {
                        total += state[i].count;
                }
-               printf("%.2f ops/second\r", total/timeval_elapsed(&tv));
-               fflush(stdout);
+
+               if (torture_setting_bool(torture, "progress", true)) {
+                       printf("%.2f ops/second\r", total/timeval_elapsed(&tv));
+                       fflush(stdout);
+               }
        }
 
        printf("%.2f ops/second\n", total/timeval_elapsed(&tv));
        }
 
        printf("%.2f ops/second\n", total/timeval_elapsed(&tv));