[Asterisk-cvs] asterisk/res res_features.c,1.60,1.61

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jul 11 16:38:10 CDT 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv11088/res

Modified Files:
	res_features.c 
Log Message:
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments


Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- res_features.c	10 Jul 2005 23:58:33 -0000	1.60
+++ res_features.c	11 Jul 2005 20:46:25 -0000	1.61
@@ -964,7 +964,7 @@
 
 				/* see if the timeout has been violated */
 				gettimeofday(&ended,NULL);
-				if(ast_tvdiff_ms(&started, &ended) > timeout) {
+				if(ast_tvdiff_ms(&ended, &started) > timeout) {
 					state = AST_CONTROL_UNHOLD;
 					ast_log(LOG_NOTICE, "We exceeded our AT-timeout\n");
 					break; /*doh! timeout*/




More information about the svn-commits mailing list