From: <ro...@us...> - 2003-03-24 19:59:57
|
Update of /cvsroot/ltp/ltp/tools/netpipe-2.4 In directory sc8-pr-cvs1:/tmp/cvs-serv8115 Modified Files: Makefile netpipe.c Log Message: warnings clean-up Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/tools/netpipe-2.4/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Makefile 13 Mar 2003 15:34:31 -0000 1.7 +++ Makefile 24 Mar 2003 19:59:50 -0000 1.8 @@ -13,7 +13,7 @@ TARGETS = NPtcp # If you have TCP, MPI and PVM #TARGETS = NPtcp NPmpi NPpvm -CFLAGS += -O +CFLAGS += -O -Wall # Adjust these for MPI (only used if you have MPI) MPI_HOME = /home/mpich MPI_ARCH = IRIX Index: netpipe.c =================================================================== RCS file: /cvsroot/ltp/ltp/tools/netpipe-2.4/netpipe.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- netpipe.c 21 Mar 2003 17:00:33 -0000 1.3 +++ netpipe.c 24 Mar 2003 19:59:51 -0000 1.4 @@ -250,7 +250,7 @@ } if (args.tr && printopt) { - fprintf(stderr,"Latency: %lf\n", latency); + fprintf(stderr,"Latency: %.7f\n", latency); fprintf(stderr,"Now starting main loop\n"); } tlast = latency; @@ -457,11 +457,11 @@ if (args.tr) { - fprintf(out, "%lf %lf %d %d %lf", bwdata[n].t, bwdata[n].bps, + fprintf(out, "%.7f %.7f %d %d %.7f", bwdata[n].t, bwdata[n].bps, bwdata[n].bits, bwdata[n].bits / 8, bwdata[n].variance); #ifdef HAVE_GETRUSAGE - fprintf(out, " %lf %lf %lf %lf", ut1 / (double) TRIALS, + fprintf(out, " %.7f %.7f %.7f %.7f", ut1 / (double) TRIALS, st1 / (double) TRIALS, ut_var, st_var); #endif fprintf(out, "\n"); @@ -473,15 +473,15 @@ if (args.tr && printopt) { - fprintf(stderr," %6.2lf Mbps in %lf sec", bwdata[n].bps, + fprintf(stderr," %6.2f Mbps in %.7f sec", bwdata[n].bps, tlast); #ifdef HAVE_GETRUSAGE - fprintf(stderr, ", avg utime=%lf avg stime=%lf, ", + fprintf(stderr, ", avg utime=%.7f avg stime=%.7f, ", ut1 / (double) TRIALS, st1 / (double) TRIALS); - fprintf(stderr, "min utime=%lf stime=%lf, ", best_utime, + fprintf(stderr, "min utime=%.7f stime=%.7f, ", best_utime, best_stime); - fprintf(stderr, "utime var=%lf stime var=%lf", ut_var, st_var); + fprintf(stderr, "utime var=%.7f stime var=%.7f", ut_var, st_var); #endif fprintf(stderr, "\n"); } @@ -493,6 +493,7 @@ fclose(out); CleanUp(&args); + return(0); } |