Reduce default values of counters.
authorsrinivas%netscape.com
Mon, 08 Feb 1999 20:28:30 +0000
changeset 428 a064716704d204676bea1f0a03693fc53c61bdfb
parent 427 6160cccd7542a3a35002b7bb7ec564c6b1bc4756
child 429 55e29e1ad7224574da6bfc7714978831e94fbcac
push idunknown
push userunknown
push dateunknown
Reduce default values of counters.
pr/tests/ranfile.c
--- a/pr/tests/ranfile.c
+++ b/pr/tests/ranfile.c
@@ -65,16 +65,20 @@ typedef struct Hammer_s {
     PRUint32 limit;
     PRUint32 writes;
     PRThread *thread;
     PRIntervalTime timein;
     Action action;
     Problem problem;
 } Hammer_t;
 
+#define DEFAULT_LIMIT		10
+#define DEFAULT_THREADS		2
+#define DEFAULT_LOOPS		1
+
 static PRInt32 pageSize = 1024;
 static const char* baseName = "./";
 static const char *programName = "Random File";
 
 #ifdef XP_MAC
 #include "prlog.h"
 #define printf PR_LogPrint
 extern void SetupMacPrintfLog(char *logFile);
@@ -308,19 +312,19 @@ int main (int argc,      char   *argv[])
 #ifdef XP_MAC
 	SetupMacPrintfLog("ranfile.log");
 	debug_mode = 1;
 #endif
 
     ml = PR_NewLock();
     cv = PR_NewCondVar(ml);
 
-    if (loops == 0) loops = 2;
-    if (limit == 0) limit = 57;
-    if (threads == 0) threads = 10;
+    if (loops == 0) loops = DEFAULT_LOOPS;
+    if (limit == 0) limit = DEFAULT_LIMIT;
+    if (threads == 0) threads = DEFAULT_THREADS;
 
     if (debug_mode) printf(
         "%s: Using loops = %d, threads = %d, limit = %d and %s threads\n",
         programName, loops, threads, limit,
         (thread_scope == PR_LOCAL_THREAD) ? "LOCAL" : "GLOBAL");
 
     for (times = 0; times < loops; ++times)
     {