aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 21:45:21 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 21:45:21 +0000
commited5acef5e9c400ecf0ba62f6e93823233adf38b3 (patch)
tree3b26a69fe8029714cc05e416bac40721b49206c1 /pbx.c
parentb0e618e1646429bb273a22767292874718778786 (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
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbx.c b/pbx.c
index 8db8db4f9..5e197f16d 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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;