svn commit: samba r22835 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Mon May 14 01:04:36 GMT 2007


Author: tridge
Date: 2007-05-14 01:04:35 +0000 (Mon, 14 May 2007)
New Revision: 22835

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22835

Log:

it's useful to see how much time is remaining in this test (so we can
tell if failures are due to the cleanup code)

Modified:
   branches/SAMBA_4_0/source/torture/raw/openbench.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/openbench.c	2007-05-14 01:04:01 UTC (rev 22834)
+++ branches/SAMBA_4_0/source/torture/raw/openbench.c	2007-05-14 01:04:35 UTC (rev 22835)
@@ -207,11 +207,12 @@
 			goto failed;
 		}
 
-		if (loops++ % 1000 != 0) continue;
+		if (loops++ % 10 != 0) continue;
 
 		if (torture_setting_bool(torture, "progress", true)) {
-			printf("%.2f ops/second (%d retries)\r", 
-			       total/timeval_elapsed(&tv), open_retries);
+			printf("%.2f ops/second (%d retries) (%u remaining)\r", 
+			       total/timeval_elapsed(&tv), open_retries,
+			       (unsigned)(timelimit - timeval_elapsed(&tv)));
 			fflush(stdout);
 		}
 	}



More information about the samba-cvs mailing list