[Cluster-devel] cluster/dlm/tests/usertest flood.c

pcaulfield at sourceware.org pcaulfield at sourceware.org
Tue Mar 27 15:17:03 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield at sourceware.org	2007-03-27 16:17:03

Modified files:
	dlm/tests/usertest: flood.c 

Log message:
	Actually, MAX_INT is a bit of a bad idea under this new system.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/flood.c.diff?cvsroot=cluster&r1=1.3&r2=1.4

--- cluster/dlm/tests/usertest/flood.c	2007/03/27 15:02:42	1.3
+++ cluster/dlm/tests/usertest/flood.c	2007/03/27 15:17:03	1.4
@@ -34,7 +34,7 @@
     fprintf(file, "\n");
     fprintf(file, "   -V         Show version of %s\n", prog);
     fprintf(file, "   -h         Show this help information\n");
-    fprintf(file, "   -m <num>   Maximum number of locks to hold (default MAX_INT)\n");
+    fprintf(file, "   -m <num>   Maximum number of locks to hold (default 100000)\n");
     fprintf(file, "   -i <num>   Show progress in <n> increments (default 1000)\n");
     fprintf(file, "   -n <num>   Number of resources (default 10)\n");
     fprintf(file, "   -q         Quit\n");
@@ -62,7 +62,7 @@
 {
     int  flags = 0;
     int  lockops = 0;
-    int  maxlocks = INT_MAX;
+    int  maxlocks = 100000;
     int  rescount = 10;
     int  increment = 1000;
     int  quiet = 0;




More information about the Cluster-devel mailing list