diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-02 17:33:02 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-02 17:33:02 +0000 |
commit | a43026526fa2d1e26cb2fa46558d169ddafb1eb7 (patch) | |
tree | f0b79f6d0a76f13e3889d3ec9bf94d5b4cd893fc /main | |
parent | fa078354e14bdc7c4c57805d6344879cb24b5040 (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')
-rw-r--r-- | main/pbx.c | 5 |
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; |