Allow fractions of a second in the Wait() application, like it says it allows.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-01-02 17:33:02 +00:00
parent 95758b4920
commit 0b50088366

View File

@@ -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;