[Asterisk-cvs] asterisk channel.c,1.73.2.10,1.73.2.11

markster at lists.digium.com markster at lists.digium.com
Fri Mar 12 11:54:07 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	channel.c 
Log Message:
Remember that "whentohangup" is in seconds, not milliseconds


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.73.2.10
retrieving revision 1.73.2.11
diff -u -d -r1.73.2.10 -r1.73.2.11
--- channel.c	8 Mar 2004 02:11:03 -0000	1.73.2.10
+++ channel.c	12 Mar 2004 16:47:28 -0000	1.73.2.11
@@ -847,8 +847,8 @@
 	
 	if (havewhen) {
 		if ((*ms < 0) || (whentohangup * 1000 < *ms)) {
-			tv.tv_sec = whentohangup / 1000;
-			tv.tv_usec = (whentohangup % 1000) * 1000;
+			tv.tv_sec = whentohangup;
+			tv.tv_usec = 0;
 		}
 	}
 	FD_ZERO(&rfds);




More information about the svn-commits mailing list