[Asterisk-cvs] asterisk pbx.c,1.102,1.103

citats at lists.digium.com citats at lists.digium.com
Thu Mar 4 16:54:12 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv3906

Modified Files:
	pbx.c 
Log Message:
Make the Wait application accept time with fractions of a second


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- pbx.c	4 Mar 2004 05:23:50 -0000	1.102
+++ pbx.c	4 Mar 2004 21:45:21 -0000	1.103
@@ -338,8 +338,8 @@
 
 	{ "Wait", pbx_builtin_wait, 
 "Waits for some time", 
-"  Wait(seconds): Waits for a specified number of seconds, then returns 0.\n" },
-
+"  Wait(seconds): Waits for a specified number of seconds, then returns 0.\n"
+"seconds can be passed with fractions of a second. (eg: 1.5 = 1.5 seconds)\n" },
 };
 
 /* Lock for the application list */
@@ -4287,8 +4287,8 @@
 {
 	int ms;
 	/* Wait for "n" seconds */
-	if (data && atoi((char *)data)) {
-		ms = atoi((char *)data) * 1000;
+	if (data && atof((char *)data)) {
+		ms = atof((char *)data) * 1000;
 		return ast_safe_sleep(chan, ms);
 	}
 	return 0;




More information about the svn-commits mailing list