aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 17:33:02 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 17:33:02 +0000
commita43026526fa2d1e26cb2fa46558d169ddafb1eb7 (patch)
treef0b79f6d0a76f13e3889d3ec9bf94d5b4cd893fc /main/pbx.c
parentfa078354e14bdc7c4c57805d6344879cb24b5040 (diff)
Allow fractions of a second in the Wait() application, like it says it allows.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49189 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 06202ad0e..d981a994c 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5507,11 +5507,12 @@ static int pbx_builtin_execiftime(struct ast_channel *chan, void *data)
*/
static int pbx_builtin_wait(struct ast_channel *chan, void *data)
{
+ double s;
int ms;
/* Wait for "n" seconds */
- if (data && (ms = atof(data)) > 0) {
- ms *= 1000;
+ if (data && (s = atof(data)) > 0) {
+ ms = s * 1000.0;
return ast_safe_sleep(chan, ms);
}
return 0;