[asterisk-commits] dvossel: trunk r206877 - /trunk/funcs/func_timeout.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 16 16:45:18 CDT 2009
Author: dvossel
Date: Thu Jul 16 16:45:14 2009
New Revision: 206877
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206877
Log:
TIMEOUT(absolute) returned negative value.
(closes issue #15513)
Reported by: ys
Modified:
trunk/funcs/func_timeout.c
Modified: trunk/funcs/func_timeout.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/funcs/func_timeout.c?view=diff&rev=206877&r1=206876&r2=206877
==============================================================================
--- trunk/funcs/func_timeout.c (original)
+++ trunk/funcs/func_timeout.c Thu Jul 16 16:45:14 2009
@@ -90,7 +90,7 @@
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;
More information about the asterisk-commits
mailing list