aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-11 20:46:25 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-11 20:46:25 +0000
commit27dfdd0b1256ebde19cd2a0f008c6a2a2c83f2b3 (patch)
tree9c436d2b20fbb8207a7c2a2a54968c3d48cda344 /apps
parent182bab0dd6186013d5b46654d9146a731140ae88 (diff)
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6083 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_alarmreceiver.c2
1 files changed, 1 insertions, 1 deletions
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);