From eb397f08dfffe95774c602b30891548168da779f Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 11 Jul 2005 20:46:25 +0000 Subject: reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6083 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_alarmreceiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_alarmreceiver.c') diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index a0788e1c1..da6db49d2 100755 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -242,7 +242,7 @@ static int receive_dtmf_digits(struct ast_channel *chan, char *digit_string, int gettimeofday(&now,NULL); /* if outa time, leave */ - if (ast_tvdiff_ms(&lastdigittime, &now) > + if (ast_tvdiff_ms(&now, &lastdigittime) > ((i > 0) ? sdto : fdto)){ if(option_verbose >= 4) ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: DTMF Digit Timeout on %s\n", chan->name); -- cgit v1.2.3