|
From: Peter C. <pc...@us...> - 2010-02-10 02:03:03
|
Update of /cvsroot/ipbench/ipbench2/src/tests/nfs_latency In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1078/src/tests/nfs_latency Modified Files: nfs_latency.c Log Message: Fix off-by-10000000 error in counting samples. Index: nfs_latency.c =================================================================== RCS file: /cvsroot/ipbench/ipbench2/src/tests/nfs_latency/nfs_latency.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** nfs_latency.c 10 Feb 2010 01:35:57 -0000 1.17 --- nfs_latency.c 10 Feb 2010 02:02:50 -0000 1.18 *************** *** 83,87 **** } if (!strcmp(cmd, "samples")) { ! nfs_options.samples = strtoll(val, (char**)NULL, 10) * US_PER_S; continue; } --- 83,87 ---- } if (!strcmp(cmd, "samples")) { ! nfs_options.samples = strtoll(val, (char**)NULL, 10); continue; } *************** *** 192,197 **** if (process_reply(&then) == 0 && now > warmup_time && cooldown_time == 0){ ! if (offset == 0) offset = requests; replies++; sample[i] = now - then; --- 192,199 ---- if (process_reply(&then) == 0 && now > warmup_time && cooldown_time == 0){ ! if (offset == 0) { ! dbprintf("Warmup done, start test\n"); offset = requests; + } replies++; sample[i] = now - then; |