diff options
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 2b3a000b4..65fc6ce5c 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; |