From 61a2afaa7ace9f5674c56d503534dcd0f1c35977 Mon Sep 17 00:00:00 2001 From: sumedh Date: Mon, 21 Jul 1997 15:43:35 +0000 Subject: Removed binary --- apps/JAWS/clients/WebSTONE/src/Makefile | 2 +- apps/JAWS/clients/WebSTONE/src/genrand | Bin 172032 -> 0 bytes apps/JAWS/clients/WebSTONE/src/webclient.c | 23 ++++++++--------------- 3 files changed, 9 insertions(+), 16 deletions(-) delete mode 100755 apps/JAWS/clients/WebSTONE/src/genrand (limited to 'apps/JAWS/clients/WebSTONE') diff --git a/apps/JAWS/clients/WebSTONE/src/Makefile b/apps/JAWS/clients/WebSTONE/src/Makefile index 65bd8d83d0a..d57dfffcd8f 100644 --- a/apps/JAWS/clients/WebSTONE/src/Makefile +++ b/apps/JAWS/clients/WebSTONE/src/Makefile @@ -16,7 +16,7 @@ CC = cc LIBS = -lsocket -lm -lthread #-lm LDFLAGS = INCLUDES = $(DYNAMICINCLUDES) -CFLAGS = -g +CFLAGS = -fast CPPFLAGS = DEFS = -DHAVE_CONFIG_H $(DYNAMICDEFS) diff --git a/apps/JAWS/clients/WebSTONE/src/genrand b/apps/JAWS/clients/WebSTONE/src/genrand deleted file mode 100755 index a6315cfef6f..00000000000 Binary files a/apps/JAWS/clients/WebSTONE/src/genrand and /dev/null differ diff --git a/apps/JAWS/clients/WebSTONE/src/webclient.c b/apps/JAWS/clients/WebSTONE/src/webclient.c index 28d206bd5c6..881c9db0ae8 100644 --- a/apps/JAWS/clients/WebSTONE/src/webclient.c +++ b/apps/JAWS/clients/WebSTONE/src/webclient.c @@ -9,6 +9,8 @@ * * **************************************************************************/ +#include + #include #ifdef WIN32 @@ -25,7 +27,6 @@ #include #ifndef WIN32 -#include #include #include #endif /* WIN32 */ @@ -411,7 +412,7 @@ accumstats(rqst_timer_t *rqsttimer, page_stats_t *pagestats, stats_t *timestat) * returns the number of files retrieved */ static int -makeload(int maxcount, int pageval, rqst_timer_t *timerarray, stats_t *timestat, SOCKET mastersock, page_stats_t *page_stats) +makeload(int maxcount, int pageval, THREAD rqst_timer_t *timerarray, THREAD stats_t *timestat, THREAD SOCKET mastersock, THREAD page_stats_t *page_stats) { int cnt; int returnval; @@ -926,15 +927,15 @@ main(int argc, char *argv[]) void ClientThread(void *dummy) { - FILE *logfile; + THREAD FILE *logfile; - stats_t timestat; + THREAD stats_t timestat; - rqst_timer_t timerarray[MAXNUMOFFILES]; - SOCKET mastersock = BADSOCKET_VALUE; /* connection to webmaster */ + THREAD rqst_timer_t timerarray[MAXNUMOFFILES]; + THREAD SOCKET mastersock = BADSOCKET_VALUE; /* connection to webmaster */ - page_stats_t *page_stats; /* actually a dynamic array */ + THREAD page_stats_t *page_stats; /* actually a dynamic array */ int loopcnt = 0; int filecnt; @@ -985,11 +986,7 @@ void ClientThread(void *dummy) /* Initialize random number generator */ junk = getpid (); -#ifndef WIN32 rand_r(&junk); -#else - junk = rand (); -#endif /* ! WIN32 */ D_PRINTF( "Random seed: %d\n", junk ); for (i=0; i < MAXNUMOFFILES; i++) @@ -1074,11 +1071,7 @@ void ClientThread(void *dummy) D_PRINTF( "Running in timed mode\n" ); /* random number between 0 and totalweight-1 */ junk = getpid (); -#ifndef WIN32 ran_number = (rand_r(&junk) % total_weight); -#else - ran_number = (RANDOM() % total_weight); -#endif D_PRINTF( "random %ld\n", ran_number ); /* loop through pages, find correct one -- cgit v1.2.1