diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-11-01 23:43:12 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-11-01 23:43:12 +0000 |
commit | 60e82110214469dcbd9d134a527fa534f9df33b9 (patch) | |
tree | d143c142627255584161861e41a2c2fcb9c00fee /source3/utils/torture.c | |
parent | 87cada5fd33ea26cccb72454f97781e6e6c3254d (diff) | |
download | samba-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)
Diffstat (limited to 'source3/utils/torture.c')
-rw-r--r-- | source3/utils/torture.c | 4 |
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))) { |