diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-04 21:45:21 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-04 21:45:21 +0000 |
commit | ed5acef5e9c400ecf0ba62f6e93823233adf38b3 (patch) | |
tree | 3b26a69fe8029714cc05e416bac40721b49206c1 | |
parent | b0e618e1646429bb273a22767292874718778786 (diff) |
Make the Wait application accept time with fractions of a second
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2333 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | pbx.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -338,8 +338,8 @@ static struct pbx_builtin { { "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 @@ static int pbx_builtin_wait(struct ast_channel *chan, void *data) { 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; |