mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user