svn commit: samba r23534 - in branches/SAMBA_4_0/source/torture/nbench: .

tridge at samba.org tridge at samba.org
Sun Jun 17 20:04:58 GMT 2007


Author: tridge
Date: 2007-06-17 20:04:57 +0000 (Sun, 17 Jun 2007)
New Revision: 23534

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23534

Log:

honour the targetrate even for loadfiles with timestamps

Modified:
   branches/SAMBA_4_0/source/torture/nbench/nbench.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbench/nbench.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbench/nbench.c	2007-06-17 20:03:31 UTC (rev 23533)
+++ branches/SAMBA_4_0/source/torture/nbench/nbench.c	2007-06-17 20:04:57 UTC (rev 23534)
@@ -88,7 +88,11 @@
 
 		if (i > 0 && isdigit(params[0][0])) {
 			double targett = strtod(params[0], NULL);
-			nbio_time_delay(targett);
+			if (target_rate != 0) {
+				nbio_target_rate(target_rate);
+			} else {
+				nbio_time_delay(targett);
+			}
 			params++;
 			i--;
 		} else if (target_rate != 0) {



More information about the samba-cvs mailing list