[Asterisk-cvs] asterisk channel.c,1.85,1.86

markster at lists.digium.com markster at lists.digium.com
Fri Mar 12 11:53:46 CST 2004


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

Modified Files:
	channel.c 
Log Message:
Whentohangup is in seconds, not milliseconds


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- channel.c	8 Mar 2004 02:09:56 -0000	1.85
+++ channel.c	12 Mar 2004 16:47:07 -0000	1.86
@@ -845,8 +845,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