diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-16 21:45:14 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-16 21:45:14 +0000 |
commit | 189a5d94f5a4c1de053d397fc268de20ca5701a8 (patch) | |
tree | a3a6d1cccb8de237889db15e7411ab2aa34b6113 /funcs/func_timeout.c | |
parent | f2f83f365f3a3825f340217d7ced2c361c033498 (diff) |
TIMEOUT(absolute) returned negative value.
(closes issue #15513)
Reported by: ys
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206877 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_timeout.c')
-rw-r--r-- | funcs/func_timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_timeout.c b/funcs/func_timeout.c index caa562834..f2623b485 100644 --- a/funcs/func_timeout.c +++ b/funcs/func_timeout.c @@ -90,7 +90,7 @@ static int timeout_read(struct ast_channel *chan, const char *cmd, char *data, ast_copy_string(buf, "0", len); } else { myt = ast_tvnow(); - snprintf(buf, len, "%.3f", ast_tvdiff_ms(myt, chan->whentohangup) / 1000.0); + snprintf(buf, len, "%.3f", ast_tvdiff_ms(chan->whentohangup, myt) / 1000.0); } break; |