From: Peter C. <pc...@us...> - 2006-03-08 01:32:18
|
Update of /cvsroot/ipbench/ipbench2/src/tests/nfs_latency In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13112/src/tests/nfs_latency Modified Files: nfs_latency.c Log Message: Change %lld to % PRIu64 for portability to 64-bit hosts Index: nfs_latency.c =================================================================== RCS file: /cvsroot/ipbench/ipbench2/src/tests/nfs_latency/nfs_latency.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** nfs_latency.c 14 Sep 2005 00:45:41 -0000 1.13 --- nfs_latency.c 8 Mar 2006 01:32:00 -0000 1.14 *************** *** 1,2 **** --- 1,3 ---- + #include <inttypes.h> #include "nfs_latency.h" #include "nfs_glue.h" *************** *** 427,441 **** avg_latency = average_uint64(aggregate, aggregate_count); ! printf("%lld,", (tot_requests*1000000) / avg_runtime); ! printf("%lld,", (tot_replies*1000000) / avg_runtime); ! printf("%lld,", aggregate[0]); ! printf("%lld,", avg_latency); ! printf("%lld,", aggregate[aggregate_count/2]); ! printf("%lld,", aggregate[aggregate_count-1]); ! printf("%lld,", aggregate_count); ! printf("%lld,", runtime[0]); ! printf("%lld,", avg_runtime); ! printf("%lld,", runtime[nelem/2]); ! printf("%lld", runtime[nelem-1]); printf("\n"); --- 428,442 ---- avg_latency = average_uint64(aggregate, aggregate_count); ! printf("%" PRIu64 ",", (tot_requests*1000000) / avg_runtime); ! printf("%" PRIu64 ",", (tot_replies*1000000) / avg_runtime); ! printf("%" PRIu64 ",", aggregate[0]); ! printf("%" PRIu64 ",", avg_latency); ! printf("%" PRIu64 ",", aggregate[aggregate_count/2]); ! printf("%" PRIu64 ",", aggregate[aggregate_count-1]); ! printf("%" PRIu64 ",", aggregate_count); ! printf("%" PRIu64 ",", runtime[0]); ! printf("%" PRIu64 ",", avg_runtime); ! printf("%" PRIu64 ",", runtime[nelem/2]); ! printf("%" PRIu64, runtime[nelem-1]); printf("\n"); |