From 628ff1bea3e167e2d45dffbffb3c4fffaa3d1916 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 29 Apr 2007 21:37:29 +0000 Subject: r22579: disable progress printing in the build-farm metze (This used to be commit 93089ad5e8b6e20c4fa92bf13b0137765aeac689) --- source4/torture/nbt/query.c | 9 ++++++--- source4/torture/nbt/winsbench.c | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'source4/torture/nbt') diff --git a/source4/torture/nbt/query.c b/source4/torture/nbt/query.c index e0bea2775c..8f5ea811e1 100644 --- a/source4/torture/nbt/query.c +++ b/source4/torture/nbt/query.c @@ -78,9 +78,12 @@ static bool bench_namequery(struct torture_context *tctx) req->async.private = result; num_sent++; if (num_sent % 1000 == 0) { - torture_comment(tctx, "%.1f queries per second (%d failures) \r", - result->num_pass / timeval_elapsed(&tv), - result->num_fail); + if (torture_setting_bool(tctx, "progress", true)) { + torture_comment(tctx, "%.1f queries per second (%d failures) \r", + result->num_pass / timeval_elapsed(&tv), + result->num_fail); + fflush(stdout); + } } } diff --git a/source4/torture/nbt/winsbench.c b/source4/torture/nbt/winsbench.c index dc349cb1eb..6a9d265404 100644 --- a/source4/torture/nbt/winsbench.c +++ b/source4/torture/nbt/winsbench.c @@ -254,9 +254,12 @@ static bool bench_wins(struct torture_context *tctx) generate_request(nbtsock, state, num_sent % state->num_names); num_sent++; if (num_sent % 50 == 0) { - torture_comment(tctx, "%.1f queries per second (%d failures) \r", - state->pass_count / timeval_elapsed(&tv), - state->fail_count); + if (torture_setting_bool(tctx, "progress", true)) { + torture_comment(tctx, "%.1f queries per second (%d failures) \r", + state->pass_count / timeval_elapsed(&tv), + state->fail_count); + fflush(stdout); + } } } -- cgit