diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 19:30:49 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 19:30:49 +0000 |
commit | 27d775129f5bb2e05b903b60e91f304f6e8ea6c4 (patch) | |
tree | 526c9a1ef7fed9d8f6ca90865ef9316aae45f344 /funcs/func_timeout.c | |
parent | f07c6d0fe829cd9ed630dc4876bf34f72ae9d652 (diff) |
Merged revisions 80547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r80547 | russell | 2007-08-23 14:29:44 -0500 (Thu, 23 Aug 2007) | 3 lines
Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80550 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_timeout.c')
-rw-r--r-- | funcs/func_timeout.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/funcs/func_timeout.c b/funcs/func_timeout.c index 3f510e4b0..58b78c167 100644 --- a/funcs/func_timeout.c +++ b/funcs/func_timeout.c @@ -90,7 +90,6 @@ static int timeout_read(struct ast_channel *chan, const char *cmd, char *data, static int timeout_write(struct ast_channel *chan, const char *cmd, char *data, const char *value) { - float f; int x; char timestr[64]; struct ast_tm myt; @@ -106,10 +105,9 @@ static int timeout_write(struct ast_channel *chan, const char *cmd, char *data, if (!value) return -1; - f = atof(value); - if (f < 0) - f = 1.0; - x = (int) (f * 1000); + x = atoi(value); + if (x < 0) + x = 0; switch (*data) { case 'a': |