[Asterisk-cvs] asterisk pbx.c,1.96.2.5,1.96.2.6
citats at lists.digium.com
citats at lists.digium.com
Thu Mar 4 16:55:44 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv3936
Modified Files:
Tag: v1-0_stable
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.96.2.5
retrieving revision 1.96.2.6
diff -u -d -r1.96.2.5 -r1.96.2.6
--- pbx.c 4 Mar 2004 05:24:45 -0000 1.96.2.5
+++ pbx.c 4 Mar 2004 21:46:53 -0000 1.96.2.6
@@ -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 */
@@ -4284,8 +4284,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