summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-01 23:43:12 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-01 23:43:12 +0000
commit60e82110214469dcbd9d134a527fa534f9df33b9 (patch)
treed143c142627255584161861e41a2c2fcb9c00fee
parent87cada5fd33ea26cccb72454f97781e6e6c3254d (diff)
downloadsamba-60e82110214469dcbd9d134a527fa534f9df33b9.tar.gz
samba-60e82110214469dcbd9d134a527fa534f9df33b9.tar.bz2
samba-60e82110214469dcbd9d134a527fa534f9df33b9.zip
don't print the progress so often - it slows down the client too much
(This used to be commit cc6e7706635ba4bf044ebd5a525113c1b2fd93e3)
-rw-r--r--source3/utils/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/torture.c b/source3/utils/torture.c
index 9363958542..0eb9a256fc 100644
--- a/source3/utils/torture.c
+++ b/source3/utils/torture.c
@@ -129,7 +129,9 @@ static int rw_torture(int numops)
for (i=0;i<numops;i++) {
unsigned n = (unsigned)random()%10;
- printf("%d\r", i); fflush(stdout);
+ if (i % 10 == 0) {
+ printf("%d\r", i); fflush(stdout);
+ }
sprintf(fname,"\\torture.%u", n);
if (!wait_lock(fnum2, n*sizeof(int), sizeof(int))) {