summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-03-12 16:47:07 +0000
committerMark Spencer <markster@digium.com>2004-03-12 16:47:07 +0000
commitf1330f7efd4b15cc76e9b0b69872c85d97267067 (patch)
tree344fbbf38756edb8baaf07cc6dcb0f475e1368b8 /channel.c
parent1e8ea5eece267ab8885a9241512b008ae1096f17 (diff)
Whentohangup is in seconds, not milliseconds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index fac138580..521742cd5 100755
--- a/channel.c
+++ b/channel.c
@@ -845,8 +845,8 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
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);